vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php
/**
     * Validate and return the decoded response JSON.
     *
     * @return array
     */
Validate and return the decoded response JSON.
@return array
Validate and return the decoded response JSON . @return array
public function decodeResponseJson()
    {
        $decodedResponse = json_decode($this->getContent(), true);
        if (is_null($decodedResponse) || $decodedResponse === false) {
            if ($this->exception) {
                throw $this->exception;
            } else {
                PHPUnit::fail('Invalid JSON was returned from the route.');
            }
        }
        return $decodedResponse;
    }
public function decodeResponseJson ( ) { $ decodedResponse = json_decode ( $ this -> getContent ( ) , true ) ; if ( is_null ( $ decodedResponse ) || $ decodedResponse === false ) { if ( $ this -> exception ) { throw $ this -> exception ; } else { PHPUnit :: fail ( 'Invalid JSON was returned from the route.' ) ; } } return $ decodedResponse ; }
Validate and return the decoded response JSON.
Validate and return the decoded response JSON .