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 doPrePersist() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'doPrePersist', array()); return parent::doPrePersist(); }