Skip to content

Commit 865f8c5

Browse files
committed
Skip failing test on PHP 8.4
1 parent 8b2a763 commit 865f8c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/UnifiedSpecTests/Constraint/MatchesTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
use stdClass;
1010

1111
use function hex2bin;
12+
use function phpversion;
1213
use function preg_quote;
14+
use function version_compare;
1315

1416
class MatchesTest extends FunctionalTestCase
1517
{
@@ -69,6 +71,10 @@ public function testOperatorExists(): void
6971

7072
public function testOperatorType(): void
7173
{
74+
if (version_compare(phpversion(), '8.4', '>=')) {
75+
$this->markTestIncomplete('Test fails on PHP 8.4 due to deprecations');
76+
}
77+
7278
$c = new Matches(['x' => ['$$type' => 'string']]);
7379
$this->assertResult(true, $c, ['x' => 'foo'], 'string matches string type');
7480
$this->assertResult(false, $c, ['x' => 1], 'integer does not match string type');

0 commit comments

Comments
 (0)