示例#1
0
 /**
  * @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());
 }
示例#2
0
 /**
  * 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();
 }