Example #1
0
 /**
  * @covers Ilios\CoreBundle\Entity\Session::stampUpdate
  */
 public function testStampUpdate()
 {
     $now = new \DateTime();
     $this->object->stampUpdate();
     $updatedAt = $this->object->getUpdatedAt();
     $this->assertTrue($updatedAt instanceof \DateTime);
     $diff = $now->diff($updatedAt);
     $this->assertTrue($diff->s < 2);
 }