We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 959c278 commit ec0db26Copy full SHA for ec0db26
tests/Validator/ValidationSystemTest.php
@@ -24,12 +24,8 @@ protected function setUp(): void
24
25
public function testNonExistingSpecFileCausesLogicException()
26
{
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');
+ $this->expectException(LogicException::class);
+ $this->expectExceptionMessageMatches('/The default schema file cannot be found/i');
33
34
new class extends DocumentValidator
35
0 commit comments