public function testCreatedAtAndPrePersist() { $this->assertNull($this->workflowItem->getCreatedAt()); $this->workflowItem->prePersist(); $this->assertInstanceOf('DateTime', $this->workflowItem->getCreatedAt()); $this->assertEquals(time(), $this->workflowItem->getCreatedAt()->getTimestamp(), '', 5); }