Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function setCreatedAt(\DateTime $createdAt)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', array($createdAt));
     return parent::setCreatedAt($createdAt);
 }
Ejemplo n.º 2
0
 /**
  * @covers Core\Entity\Module::setCreatedAt
  * @covers Core\Entity\Module::getCreatedAt
  */
 public function testSetGetCreatedAt()
 {
     $dt = new DateTime();
     $this->module->setCreatedAt($dt);
     $this->assertEquals($dt, $this->module->getCreatedAt());
 }