public function testHowToTransformADateIntoATimePoint() { $jan1 = new Date(2013, 1, 1); $timePoint = $jan1->toTimePoint(); $this->assertInstanceOf('Ddd\\Time\\Model\\TimePoint', $timePoint); $this->assertEquals($timePoint->getYear(), 2013); $this->assertEquals($timePoint->getMonth(), 1); $this->assertEquals($timePoint->getDay(), 1); $this->assertEquals($timePoint->getHour(), 0); $this->assertEquals($timePoint->getMinutes(), 0); $this->assertEquals($timePoint->getSeconds(), 0); }