tests/Http/RequestTest.php
/**
     * Tests JSON content decoding and error handling.
     */
Tests JSON content decoding and error handling.
Tests JSON content decoding and error handling .
public function testJson()
    {
        $this->assertEquals('true', $this->request->json('working'));
        $this->assertEquals('true', $this->request->json('nested[working]'));
        $this->assertNull($this->request->jsonError());
    }
public function testJson ( ) { $ this -> assertEquals ( 'true' , $ this -> request -> json ( 'working' ) ) ; $ this -> assertEquals ( 'true' , $ this -> request -> json ( 'nested[working]' ) ) ; $ this -> assertNull ( $ this -> request -> jsonError ( ) ) ; }
Tests JSON content decoding and error handling.
Tests JSON content decoding and error handling .