Skip to content

Commit

Permalink
Convert time to unix time to make different php versions time formats…
Browse files Browse the repository at this point in the history
… work
  • Loading branch information
Edofre committed May 19, 2017
1 parent a5729cc commit 279eaa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Integration/EventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public function generate_event_with_start_end_dates()
]
);

$this->assertEquals("2016-11-16T10:00:00+0000", $event->start);
$this->assertNotEquals("2016-11-16T10:00:00+0000", $event->end);
$this->assertEquals(strtotime("2016-11-16T10:00:00+0000"), strtotime($event->start));
$this->assertNotEquals(strtotime("2016-11-16T10:00:00+0000"), strtotime($event->end));
}

/** @test */
Expand Down Expand Up @@ -66,8 +66,8 @@ public function generate_event_with_all_attributes()
$this->assertNotEquals('2', $event->id);
$this->assertEquals("Test event", $event->title);
$this->assertEquals(false, $event->allDay);
$this->assertEquals("2016-11-16T10:00:00+0000", $event->start);
$this->assertNotEquals("2016-11-16T10:00:00+0000", $event->end);
$this->assertEquals(strtotime("2016-11-16T10:00:00+0000"), strtotime($event->start));
$this->assertNotEquals(strtotime("2016-11-16T10:00:00+0000"), strtotime($event->end));
$this->assertEquals('www.test.dev', $event->url);
$this->assertNotEquals('event-test', $event->className);
$this->assertEquals(true, $event->editable);
Expand Down

0 comments on commit 279eaa6

Please sign in to comment.