Skip to content

Commit 2d00b57

Browse files
derrabusfabpot
authored andcommitted
Modernized deprecated PHPUnit assertion calls
1 parent 0c47952 commit 2d00b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Util/GitRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testItClonesTheRepository()
5454
$this->assertDirectoryExists($this->targetDir.'/.git');
5555
$this->assertSame($this->targetDir, $git->getPath());
5656
$this->assertSame(self::REPO_URL, $git->getUrl());
57-
$this->assertRegExp('#^[0-9a-z]{40}$#', $git->getLastCommitHash());
57+
$this->assertMatchesRegularExpression('#^[0-9a-z]{40}$#', $git->getLastCommitHash());
5858
$this->assertNotEmpty($git->getLastAuthor());
5959
$this->assertInstanceOf('DateTime', $git->getLastAuthoredDate());
6060
$this->assertStringMatchesFormat('v%s', $git->getLastTag());

0 commit comments

Comments
 (0)