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