Example #1
0
 /**
  * Test getPluginObject
  */
 public function testGetPluginObjectDoesntExist()
 {
     $test_ph = new TestFauxHookableApp();
     $this->expectException(new PluginNotFoundException("notregistered"));
     $plugin_obj = $test_ph->getPluginObject("notregistered");
 }
Example #2
0
 /**
  * Test getPluginObject
  */
 function testGetPluginObjectDoesntExist()
 {
     $test_ph = new TestFauxHookableApp();
     $this->expectException(new Exception("No plugin object defined for: notregistered"));
     $plugin_obj = $test_ph->getPluginObject("notregistered");
 }