protected function registerParserHook() { $runner = $this->getHookRunner(); $registrant = new HookRegistrant($this->parser); $registrant->registerHook($runner); }
/** * @dataProvider namesProvider */ public function testRegisterHook(array $names) { $parser = $this->newMockParserForHook($names); $registrant = new HookRegistrant($parser); $registrant->registerHook($this->newMockRunner($names, 'ParserHooks\\HookRunner')); }