public function testPreUpdate() { $this->assertNull($this->comment->getUpdatedAt()); $this->comment->preUpdate(); $this->assertInstanceOf('DateTime', $this->comment->getUpdatedAt()); $this->assertLessThan(3, $this->comment->getUpdatedAt()->diff(new \DateTime())->s); }