diff --git a/tests/generator_test.php b/tests/generator_test.php index d4a2be1..8ffc233 100644 --- a/tests/generator_test.php +++ b/tests/generator_test.php @@ -142,8 +142,8 @@ public function test_create_session() { $this->assertIsArray($session2->sessiondates); $this->assertCount(1, $session2->sessiondates); $this->assertSame($session2->id, $session2->sessiondates[0]->sessionid); - $this->assertSame((string)($now - 3 * DAYSECS), $session2->sessiondates[0]->timestart); - $this->assertSame((string)($now - 2 * DAYSECS), $session2->sessiondates[0]->timefinish); + $this->assertSame((string) ($now - 3 * DAYSECS), $session2->sessiondates[0]->timestart); + $this->assertSame((string) ($now - 2 * DAYSECS), $session2->sessiondates[0]->timefinish); $now = time(); $this->setCurrentTimeStart(); @@ -174,7 +174,7 @@ public function test_create_session() { $this->assertIsArray($session3->sessiondates); $this->assertCount(1, $session3->sessiondates); $this->assertSame($session3->id, $session3->sessiondates[0]->sessionid); - $this->assertSame((string)($now + 10 * DAYSECS), $session3->sessiondates[0]->timestart); - $this->assertSame((string)($now + 11 * DAYSECS), $session3->sessiondates[0]->timefinish); + $this->assertSame((string) ($now + 10 * DAYSECS), $session3->sessiondates[0]->timestart); + $this->assertSame((string) ($now + 11 * DAYSECS), $session3->sessiondates[0]->timefinish); } }