File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ public function testNotice()
93
93
// if an exception is thrown, the test passed
94
94
if (\PHP_VERSION_ID < 80000 ) {
95
95
$ 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 ());
97
97
} else {
98
98
$ 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 ());
100
100
}
101
101
$ this ->assertEquals (__FILE__ , $ exception ->getFile ());
102
102
You can’t perform that action at this time.
0 commit comments