Sanpi\Behatch\Tests\Units\Json\JsonInspector::test_evaluate_php_mode PHP Method

test_evaluate_php_mode() public method

    public function test_evaluate_php_mode()
    {
        $json = new \Sanpi\Behatch\Json\Json('{ "foo": { "bar": "foobar" } }');
        $inspector = $this->newTestedInstance('php');
        $result = $inspector->evaluate($json, 'foo.bar');
        $this->string($result)->isEqualTo('foobar');
    }