Skip to content

Commit

Permalink
fix expect exception on is_json tests
Browse files Browse the repository at this point in the history
  • Loading branch information
d8vjork committed Oct 23, 2023
1 parent b9842b9 commit e37ef09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/StringsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class StringsTest extends TestCase
public function test_is_json(): void
{
if (version_compare(PHP_VERSION, '8.3', '>')) {
$this->expectException('is_json function is deprecated. In PHP 8.3+ better use json_validate native function.');
$this->expectExceptionMessage('is_json function is deprecated. In PHP 8.3+ better use json_validate native function.');
}

$this->assertTrue(is_json('{}'));
Expand Down

0 comments on commit e37ef09

Please sign in to comment.