/** * @test */ public function jsonPathShouldSetValueAndPathOnMatcher() { $matcher = ExtraMatchers::jsonPath('value', '$.some.path'); $this->assertEquals('<$.some.path==value>', $matcher->__toString()); }
/** * @test */ public function arrayPathShouldSetValueAndPathOnMatcher() { $matcher = ExtraMatchers::arrayPath('value', 'some/path'); $this->assertEquals('<some/path==value>', $matcher->__toString()); }