Skip to content

Commit fc8faa0

Browse files
committed
stop using deprecated PHPUnit APIs
1 parent 66f1513 commit fc8faa0

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)