/**
  * @dataProvider getEnableableNodeFixtures
  */
 public function testTrueEnableEnabledNode($expected, $config, $message)
 {
     $processor = new Processor();
     $node = new ArrayNodeDefinition('root');
     $node->canBeEnabled()->children()->scalarNode('foo')->defaultValue('bar')->end();
     $this->assertEquals($expected, $processor->process($node->getNode(), $config), $message);
 }
Esempio n. 2
0
 public function testNestedPrototypedArrayNodes()
 {
     $node = new ArrayNodeDefinition('root');
     $node->addDefaultChildrenIfNoneSet()->prototype('array')->prototype('array');
     $node->getNode();
 }