public function testPrePersist() { $obj = new Task(); $this->assertNull($obj->getCreatedAt()); $this->assertNull($obj->getUpdatedAt()); $obj->prePersist(); $this->assertInstanceOf('\\DateTime', $obj->getCreatedAt()); $this->assertInstanceOf('\\DateTime', $obj->getUpdatedAt()); }