Skip to content

Commit 9781253

Browse files
derrabusfabpot
authored andcommitted
Modernized deprecated PHPUnit assertion calls
1 parent a70a77e commit 9781253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Command/LintCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testLintIncorrectFile()
4242
$ret = $tester->execute(['filename' => [$filename]], ['decorated' => false]);
4343

4444
$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()));
4646
}
4747

4848
public function testLintFileNotReadable()
@@ -63,7 +63,7 @@ public function testLintFileCompileTimeException()
6363
$ret = $tester->execute(['filename' => [$filename]], ['decorated' => false]);
6464

6565
$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()));
6767
}
6868

6969
/**

0 commit comments

Comments
 (0)