Exemplo n.º 1
0
 private function parseWatchSection(PluginInterface $plugin, $definitions)
 {
     foreach ($definitions as $options) {
         $watcher = new Watcher($this->container);
         $watcher->setOptions($options);
         $plugin->addWatcher($watcher);
     }
 }
Exemplo n.º 2
0
 function its_getMatchedFiles_should_not_process_configuration_file(EvaluateEvent $event, ContainerInterface $container, Watcher $watcher)
 {
     $watcher->matchFile('config_file')->shouldNotBeCalled();
     $event->getFiles()->willReturn(array('config_file'));
     $this->getMatchedFiles($event);
 }