public function testEnableLibraryHooksFailsWithWrongHookName() { $this->setExpectedException('InvalidArgumentException', "Library hooks don't exist: non_existing"); $this->config->enableLibraryHooks(array('non_existing')); }