Skip to content

Commit 448aefe

Browse files
committed
stop using deprecated PHPUnit APIs
1 parent e317e99 commit 448aefe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Command/LintCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testLintFileWithReportedDeprecation()
9191
$ret = $tester->execute(['filename' => [$filename], '--show-deprecations' => true], ['verbosity' => OutputInterface::VERBOSITY_VERBOSE, 'decorated' => false]);
9292

9393
$this->assertEquals(1, $ret, 'Returns 1 in case of error');
94-
$this->assertRegExp('/ERROR in \S+ \(line 1\)/', trim($tester->getDisplay()));
94+
$this->assertMatchesRegularExpression('/ERROR in \S+ \(line 1\)/', trim($tester->getDisplay()));
9595
$this->assertStringContainsString('Filter "deprecated_filter" is deprecated', trim($tester->getDisplay()));
9696
}
9797

0 commit comments

Comments
 (0)