public function testDoPrePersist() { $item = new PageState(); $item->doPrePersist(); $this->assertInstanceOf('DateTime', $item->getCreatedAt()); $this->assertInstanceOf('DateTime', $item->getUpdatedAt()); $this->assertEquals($item->getCreatedAt(), $item->getUpdatedAt()); }
/** * {@inheritDoc} */ public function getCreatedAt() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', array()); return parent::getCreatedAt(); }