/** * @covers DateUtils::dateTimeToTimestamp */ public function testDateTimeToTimestamp() { $timeZone = new \DateTimeZone("Europe/Paris"); $dateTime = new \DateTime("2015-05-01 10:34:23", $timeZone); $actual = \DateUtils::dateTimeToTimestamp($dateTime); $excepted = 1430469263; $this->assertSame($excepted, $actual); }