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