Skip to content

Commit 2b765f0

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: stop using deprecated PHPUnit APIs
2 parents 86c9741 + 2a78590 commit 2b765f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/GitignoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ public function testCases(string $patterns, array $matchingCases, array $nonMatc
2323
$regex = Gitignore::toRegex($patterns);
2424

2525
foreach ($matchingCases as $matchingCase) {
26-
$this->assertRegExp($regex, $matchingCase, sprintf('Failed asserting path [%s] matches gitignore patterns [%s] using regex [%s]', $matchingCase, $patterns, $regex));
26+
$this->assertMatchesRegularExpression($regex, $matchingCase, sprintf('Failed asserting path [%s] matches gitignore patterns [%s] using regex [%s]', $matchingCase, $patterns, $regex));
2727
}
2828

2929
foreach ($nonMatchingCases as $nonMatchingCase) {
30-
$this->assertNotRegExp($regex, $nonMatchingCase, sprintf('Failed asserting path [%s] not matching gitignore patterns [%s] using regex [%s]', $nonMatchingCase, $patterns, $regex));
30+
$this->assertDoesNotMatchRegularExpression($regex, $nonMatchingCase, sprintf('Failed asserting path [%s] not matching gitignore patterns [%s] using regex [%s]', $nonMatchingCase, $patterns, $regex));
3131
}
3232
}
3333

0 commit comments

Comments
 (0)