Skip to content

Commit 525636d

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: stop using deprecated PHPUnit APIs
2 parents 47b51a6 + 2434fb3 commit 525636d

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)