Sanpi\Behatch\Tests\Units\Json\Json::test_read_invalid_expression PHP Method

test_read_invalid_expression() public method

    public function test_read_invalid_expression()
    {
        $accessor = PropertyAccess::createPropertyAccessor();
        $json = $this->newTestedInstance('{"foo":"bar"}');
        $this->exception(function () use($json, $accessor) {
            $json->read('jeanmarc', $accessor);
        })->isInstanceOf('Symfony\\Component\\PropertyAccess\\Exception\\NoSuchPropertyException');
    }