public function testTriggerCallsRegisteredHandlers()
{
$hooks = new \Elgg\PluginHooksService();
$this->setExpectedException('InvalidArgumentException');
$hooks->registerHandler('foo', 'bar', array('\\Elgg\\PluginHooksServiceTest', 'throwInvalidArg'));
$hooks->trigger('foo', 'bar');
}