diff --git a/Tests/GitignoreTest.php b/Tests/GitignoreTest.php index ae1cfb99..f772bdb6 100644 --- a/Tests/GitignoreTest.php +++ b/Tests/GitignoreTest.php @@ -23,11 +23,11 @@ public function testCases(string $patterns, array $matchingCases, array $nonMatc $regex = Gitignore::toRegex($patterns); foreach ($matchingCases as $matchingCase) { - $this->assertRegExp($regex, $matchingCase, sprintf('Failed asserting path [%s] matches gitignore patterns [%s] using regex [%s]', $matchingCase, $patterns, $regex)); + $this->assertMatchesRegularExpression($regex, $matchingCase, sprintf('Failed asserting path [%s] matches gitignore patterns [%s] using regex [%s]', $matchingCase, $patterns, $regex)); } foreach ($nonMatchingCases as $nonMatchingCase) { - $this->assertNotRegExp($regex, $nonMatchingCase, sprintf('Failed asserting path [%s] not matching gitignore patterns [%s] using regex [%s]', $nonMatchingCase, $patterns, $regex)); + $this->assertDoesNotMatchRegularExpression($regex, $nonMatchingCase, sprintf('Failed asserting path [%s] not matching gitignore patterns [%s] using regex [%s]', $nonMatchingCase, $patterns, $regex)); } }