Skip to content

Commit

Permalink
Increases windows compability by removing microtime from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vassyli committed Jan 4, 2017
1 parent b8f47c6 commit 94e18b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions t.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CMD /C phpunit --stop-on-failure
3 changes: 1 addition & 2 deletions tests/Models/MotdModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public function testTimezone()
$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());
Expand Down Expand Up @@ -100,7 +99,7 @@ public function testCreateSaveAndRetrieve(array $motdCreationArguments)
$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());
Expand Down

0 comments on commit 94e18b8

Please sign in to comment.