/** * @covers DateUtils::makeDate */ public function testMakeDate() { $date = \DateUtils::makeDate(2015, 5, 1, 10, 34, 23, "Europe/Paris"); $this->assertInstanceOf("DateTime", $date); $actual = $date->getTimestamp(); $excepted = 1430469263; $this->assertSame($excepted, $actual); }