public function testDateTimeMethods() { $timeCreated = new \DateTime('now'); $timeUpdated = new \DateTime('now'); $this->tag->setCreatedAt($timeCreated); $this->tag->setUpdatedAt($timeUpdated); $this->assertEquals($timeCreated, $this->tag->getCreatedAt()); $this->assertEquals($timeUpdated, $this->tag->getUpdatedAt()); }