Increases windows compability by removing microtime from tests

This commit is contained in:
Basilius Sauter
2017-01-04 08:26:10 +01:00
parent b8f47c6d53
commit 94e18b8d11
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
CMD /C phpunit --stop-on-failure
+1 -2
View File
@@ -52,7 +52,6 @@ class MotDModelTest extends CoreModelTestCase
$time4->setTimezone(new \DateTimeZone("America/Los_Angeles"));
$this->assertSame($time1->getTimestamp(), $time2->getTimestamp());
$this->assertEquals($time1, $time2);
$this->assertSame($time2, $time3);
$this->assertEquals($time2->getTimezone(), $time3->getTimezone());
$this->assertNotEquals($time1->getTimezone(), $time2->getTimezone());
@@ -100,7 +99,7 @@ class MotDModelTest extends CoreModelTestCase
$this->assertSame($motdCreationArguments["author"]->getName(), $checkMotd->getAuthor()->getName());
$this->assertSame($motdCreationArguments["title"], $checkMotd->getTitle());
$this->assertSame($motdCreationArguments["body"], $checkMotd->getBody());
$this->assertEquals($motd->getCreationTime(), $checkMotd->getCreationTime());
$this->assertEquals($motd->getCreationTime()->format("Ymd-His"), $checkMotd->getCreationTime()->format("Ymd-His"));
if ($motdCreationArguments["systemMessage"] === true) {
$this->assertNotSame($motdCreationArguments["author"]->getName(), $checkMotd->getApparantAuthor()->getName());