X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2FTimingTest.php;h=90abd8cf7d37fdffac128e21e338e2b2ee13f4a3;hb=825d66bfa44c5dae2b78e2fe4f3b16f16aff4a12;hp=7e166f88e8e843286dd3b5195d4fe787b6cf835b;hpb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/TimingTest.php b/tests/phpunit/includes/libs/TimingTest.php index 7e166f88e8..90abd8cf7d 100644 --- a/tests/phpunit/includes/libs/TimingTest.php +++ b/tests/phpunit/includes/libs/TimingTest.php @@ -19,7 +19,7 @@ * @author Ori Livneh */ -class TimingTest extends PHPUnit_Framework_TestCase { +class TimingTest extends PHPUnit\Framework\TestCase { use MediaWikiCoversValidator; @@ -55,7 +55,7 @@ class TimingTest extends PHPUnit_Framework_TestCase { $this->assertEquals( 'a', $entry['name'] ); $this->assertEquals( 'mark', $entry['entryType'] ); $this->assertArrayHasKey( 'startTime', $entry ); - $this->assertEquals( 0, $entry['duration'] ); + $this->assertSame( 0, $entry['duration'] ); usleep( 100 ); $timing->mark( 'a' );