Skip to content

Commit 2434fb3

Browse files
committed
minor #37831 stop using deprecated PHPUnit APIs (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- stop using deprecated PHPUnit APIs | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 3d209c46e4 stop using deprecated PHPUnit APIs
2 parents a09170d + fc8faa0 commit 2434fb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/ErrorHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ public function testNotice()
9393
// if an exception is thrown, the test passed
9494
if (\PHP_VERSION_ID < 80000) {
9595
$this->assertEquals(E_NOTICE, $exception->getSeverity());
96-
$this->assertRegExp('/^Notice: Undefined variable: (foo|bar)/', $exception->getMessage());
96+
$this->assertMatchesRegularExpression('/^Notice: Undefined variable: (foo|bar)/', $exception->getMessage());
9797
} else {
9898
$this->assertEquals(E_WARNING, $exception->getSeverity());
99-
$this->assertRegExp('/^Warning: Undefined variable \$(foo|bar)/', $exception->getMessage());
99+
$this->assertMatchesRegularExpression('/^Warning: Undefined variable \$(foo|bar)/', $exception->getMessage());
100100
}
101101
$this->assertEquals(__FILE__, $exception->getFile());
102102

0 commit comments

Comments
 (0)