/** * @covers \Ilios\CoreBundle\Entity\MeshTerm::__construct */ public function testConstructor() { $now = new \DateTime(); $createdAt = $this->object->getCreatedAt(); $this->assertTrue($createdAt instanceof \DateTime); $diff = $now->diff($createdAt); $this->assertTrue($diff->s < 2); }