Skip to content

Commit

Permalink
Merge pull request #177 from supermetrics-public/chore/RemovePhp7Tests
Browse files Browse the repository at this point in the history
Remove some tests specific to PHP 7
  • Loading branch information
crocodele authored Dec 20, 2023
2 parents b3384c7 + a96827c commit c5f7830
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $result = $jsonPath->find($data, '$[0]');
var_dump($result);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: JsonPath\JsonPath::find(): Argument #1 ($data) must be of type array, string given in %s014_php8.php:%d
Fatal error: Uncaught TypeError: JsonPath\JsonPath::find(): Argument #1 ($data) must be of type array, string given in %s014.php:%d
Stack trace:
%s
%s
Expand Down
18 changes: 0 additions & 18 deletions tests/comparison_bracket_notation/014_php7.phpt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $result = $jsonPath->find($data, "$..*");
var_dump($result);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: JsonPath\JsonPath::find(): Argument #1 ($data) must be of type array, int given in %s047_php8.php:%d
Fatal error: Uncaught TypeError: JsonPath\JsonPath::find(): Argument #1 ($data) must be of type array, int given in %s047.php:%d
Stack trace:
%s
%s
Expand Down
18 changes: 0 additions & 18 deletions tests/comparison_dot_notation/047_php7.phpt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $result = $jsonPath->find($data, "$");
var_dump($result);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: JsonPath\JsonPath::find(): Argument #1 ($data) must be of type array, int given in %s002_php8.php:%d
Fatal error: Uncaught TypeError: JsonPath\JsonPath::find(): Argument #1 ($data) must be of type array, int given in %s002.php:%d
Stack trace:
%s
%s
Expand Down
18 changes: 0 additions & 18 deletions tests/comparison_root/002_php7.phpt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $result = $jsonPath->find($data, "$");
var_dump($result);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: JsonPath\JsonPath::find(): Argument #1 ($data) must be of type array, %s given in %s003_php8.php:%d
Fatal error: Uncaught TypeError: JsonPath\JsonPath::find(): Argument #1 ($data) must be of type array, %s given in %s003.php:%d
Stack trace:
%s
%s
Expand Down
18 changes: 0 additions & 18 deletions tests/comparison_root/003_php7.phpt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $result = $jsonPath->find($data, "$");
var_dump($result);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: JsonPath\JsonPath::find(): Argument #1 ($data) must be of type array, %s given in %s004_php8.php:%d
Fatal error: Uncaught TypeError: JsonPath\JsonPath::find(): Argument #1 ($data) must be of type array, %s given in %s004.php:%d
Stack trace:
%s
%s
Expand Down
18 changes: 0 additions & 18 deletions tests/comparison_root/004_php7.phpt

This file was deleted.

0 comments on commit c5f7830

Please sign in to comment.