Skip to content

Commit ec0db26

Browse files
committed
fix: corrected testcase
1 parent 959c278 commit ec0db26

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/Validator/ValidationSystemTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,8 @@ protected function setUp(): void
2424

2525
public function testNonExistingSpecFileCausesLogicException()
2626
{
27-
if (preg_match('/^8\./', (string) phpversion())) {
28-
$this->expectError();
29-
} else {
30-
$this->expectException(LogicException::class);
31-
}
32-
$this->expectExceptionMessageRegExp('/The default schema file cannot be found/i');
27+
$this->expectException(LogicException::class);
28+
$this->expectExceptionMessageMatches('/The default schema file cannot be found/i');
3329

3430
new class extends DocumentValidator
3531
{

0 commit comments

Comments
 (0)