public function testUpdatedAndPreUpdate() { $this->assertNull($this->workflowItem->getUpdatedAt()); $this->workflowItem->preUpdate(); $this->assertInstanceOf('DateTime', $this->workflowItem->getUpdatedAt()); $this->assertEquals(time(), $this->workflowItem->getUpdatedAt()->getTimestamp(), '', 5); }