/** * @covers TheSportsDb\Entity\Entity::getPropertyMapDefinition */ public function testGetPropertyMapDefinition() { // If something goes wrong an exception will be thrown $this->assertInstanceOf(PropertyMapDefinition::class, TestEntity::getPropertyMapDefinition()); TestEntity::resetStatics(array('get')); $this->assertInstanceOf(PropertyMapDefinition::class, TestEntity::getPropertyMapDefinition()); }
/** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ protected function tearDown() { $this->mapper = NULL; $this->entityManager = NULL; TestEntity::resetStatics(); }