示例#1
0
 public function testPrePersist()
 {
     $this->target->prePersist();
     $this->assertEquals($this->target->getDateCreated(), new \DateTime());
 }
示例#2
0
 public function testPrePersist()
 {
     $this->target->prePersist();
     $this->assertInstanceOf("\\DateTime", $this->target->getDateCreated());
 }