コード例 #1
0
 /**
  * @expectedException EntityActions\Exception\NotAnEntityException
  */
 public function testGetThrowsExceptionForObjectNotBeingAnEntity()
 {
     EntityActionManager::registry('TestApp\\EntityAction\\TestEntityActionRegistry');
     EntityActionManager::get(new \stdClass());
 }
コード例 #2
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     EntityActionManager::registry('TestApp\\EntityAction\\TestEntityActionRegistry');
 }