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 @@ -42,7 +42,7 @@ public function testLintIncorrectFile()
42
42
$ ret = $ tester ->execute (['filename ' => [$ filename ]], ['decorated ' => false ]);
43
43
44
44
$ this ->assertEquals (1 , $ ret , 'Returns 1 in case of error ' );
45
- $ this ->assertRegExp ('/ERROR in \S+ \(line / ' , trim ($ tester ->getDisplay ()));
45
+ $ this ->assertMatchesRegularExpression ('/ERROR in \S+ \(line / ' , trim ($ tester ->getDisplay ()));
46
46
}
47
47
48
48
public function testLintFileNotReadable ()
@@ -63,7 +63,7 @@ public function testLintFileCompileTimeException()
63
63
$ ret = $ tester ->execute (['filename ' => [$ filename ]], ['decorated ' => false ]);
64
64
65
65
$ this ->assertEquals (1 , $ ret , 'Returns 1 in case of error ' );
66
- $ this ->assertRegExp ('/ERROR in \S+ \(line / ' , trim ($ tester ->getDisplay ()));
66
+ $ this ->assertMatchesRegularExpression ('/ERROR in \S+ \(line / ' , trim ($ tester ->getDisplay ()));
67
67
}
68
68
69
69
/**
You can’t perform that action at this time.
0 commit comments