private function parseWatchSection(PluginInterface $plugin, $definitions) { foreach ($definitions as $options) { $watcher = new Watcher($this->container); $watcher->setOptions($options); $plugin->addWatcher($watcher); } }
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); }