public function testAsDate() { $date = new DateTime('now'); $day = $date->asDate(); $this->assertInstanceOf('\\Staffim\\DateTime\\Date', $day); $this->assertStringEndsWith('.000000+0000', $day->toIsoString()); }