aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/GitInfoTest.php
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2020-01-09 15:23:19 -0800
committerDaimona Eaytoy <daimona.wiki@gmail.com>2020-01-10 10:17:12 +0000
commit5e9fca47b970bacbf08a0cb9dde7ccdc4cac2e13 (patch)
treecbcbb1608244d7f3df925ace88f4cda932737e85 /tests/phpunit/includes/GitInfoTest.php
parent94969db4cec2a8d62c84baac2048a0d86151a184 (diff)
downloadmediawikicore-5e9fca47b970bacbf08a0cb9dde7ccdc4cac2e13.tar.gz
mediawikicore-5e9fca47b970bacbf08a0cb9dde7ccdc4cac2e13.zip
Coding style: Auto-fix MediaWiki.Usage.PHPUnit*
Change-Id: I86fc55a4fc8ceafe368692173211bbcd6d8581d7
Diffstat (limited to 'tests/phpunit/includes/GitInfoTest.php')
-rw-r--r--tests/phpunit/includes/GitInfoTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/phpunit/includes/GitInfoTest.php b/tests/phpunit/includes/GitInfoTest.php
index cac5763bb9f7..09438c722f33 100644
--- a/tests/phpunit/includes/GitInfoTest.php
+++ b/tests/phpunit/includes/GitInfoTest.php
@@ -47,9 +47,9 @@ class GitInfoTest extends MediaWikiTestCase {
protected function assertValidGitInfo( GitInfo $gitInfo ) {
$this->assertTrue( $gitInfo->cacheIsComplete() );
$this->assertEquals( 'refs/heads/master', $gitInfo->getHead() );
- $this->assertEquals( '0123456789abcdef0123456789abcdef01234567',
+ $this->assertSame( '0123456789abcdef0123456789abcdef01234567',
$gitInfo->getHeadSHA1() );
- $this->assertEquals( '1070884800', $gitInfo->getHeadCommitDate() );
+ $this->assertSame( '1070884800', $gitInfo->getHeadCommitDate() );
$this->assertEquals( 'master', $gitInfo->getCurrentBranch() );
$this->assertStringContainsString( '0123456789abcdef0123456789abcdef01234567',
$gitInfo->getHeadViewUrl() );
@@ -83,7 +83,7 @@ class GitInfoTest extends MediaWikiTestCase {
$fixture = new GitInfo( $dir );
$this->assertEquals( 'refs/heads/master', $fixture->getHead() );
- $this->assertEquals( '0123456789012345678901234567890123abcdef', $fixture->getHeadSHA1() );
+ $this->assertSame( '0123456789012345678901234567890123abcdef', $fixture->getHeadSHA1() );
}
public function testIndirection() {
@@ -91,7 +91,7 @@ class GitInfoTest extends MediaWikiTestCase {
$fixture = new GitInfo( $dir );
$this->assertEquals( 'refs/heads/master', $fixture->getHead() );
- $this->assertEquals( '0123456789012345678901234567890123abcdef', $fixture->getHeadSHA1() );
+ $this->assertSame( '0123456789012345678901234567890123abcdef', $fixture->getHeadSHA1() );
}
public function testIndirection2() {
@@ -99,7 +99,7 @@ class GitInfoTest extends MediaWikiTestCase {
$fixture = new GitInfo( $dir );
$this->assertEquals( 'refs/heads/master', $fixture->getHead() );
- $this->assertEquals( '0123456789012345678901234567890123abcdef', $fixture->getHeadSHA1() );
+ $this->assertSame( '0123456789012345678901234567890123abcdef', $fixture->getHeadSHA1() );
}
public function testReadingPackedRefs() {