Sanpi\Behatch\Tests\Units\Json\Json::test_read PHP Метод

test_read() публичный Метод

public test_read ( )
    public function test_read()
    {
        $accessor = PropertyAccess::createPropertyAccessor();
        $json = $this->newTestedInstance('{"foo":"bar"}');
        $result = $json->read('foo', $accessor);
        $this->string($result)->isEqualTo('bar');
    }