コード例 #1
0
ファイル: VocationTest.php プロジェクト: parnustk/lisbackend
 /**
  * @covers Core\Entity\Vocation::setCreatedAt
  * @covers Core\Entity\Vocation::getCreatedAt
  */
 public function testSetGetCreatedAt()
 {
     $dt = new DateTime();
     $this->vocation->setCreatedAt($dt);
     $this->assertEquals($dt, $this->vocation->getCreatedAt());
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function setCreatedAt($createdAt)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', array($createdAt));
     return parent::setCreatedAt($createdAt);
 }