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