public function testGetTransitionDateAndPrePersist() { $this->assertNull($this->transitionRecord->getTransitionDate()); $this->transitionRecord->prePersist(); $this->assertInstanceOf('\\DateTime', $this->transitionRecord->getTransitionDate()); $this->assertEquals(time(), $this->transitionRecord->getTransitionDate()->getTimestamp(), '', 5); }