Skip to content

Commit fc485cd

Browse files
committed
Remove wrapper Assert::search
1 parent 725c18f commit fc485cd

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/Assert.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,12 @@ public static function assertJsonMatchesSchemaString($schema, $content)
8181
*/
8282
public static function assertJsonValueEquals($expected, $expression, $json)
8383
{
84-
$result = self::search($expression, $json);
84+
$result = \JmesPath\Env::search($expression, $json);
8585

8686
self::assertEquals($expected, $result);
8787
self::assertInternalType(gettype($expected), $result);
8888
}
8989

90-
/**
91-
* @param $expression
92-
* @param $data
93-
*
94-
* @return mixed|null
95-
*/
96-
public static function search($expression, $data)
97-
{
98-
return \JmesPath\Env::search($expression, $data);
99-
}
100-
10190
/**
10291
* Helper method to deserialise a JSON string into an object.
10392
*

0 commit comments

Comments
 (0)