/** * {@inheritdoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('configuration'); $rootNode->useAttributeAsKey('name'); $this->triggerConfiguration->addTriggerNodes($rootNode->prototype('array')->prototype('array')); return $treeBuilder; }
public function testProcessInvalidEvent() { $this->configuration->processConfiguration(array('event' => 'not_existing_event')); }
/** * @dataProvider processExceptionDataProvider * * @param array $config * @param string $exception * @param string $message */ public function testProcessException(array $config, $exception, $message) { $this->setExpectedException($exception, $message); $this->configuration->processConfiguration($config); }