Beispiel #1
0
 /**
  * @dataProvider invalidConfigsProvider
  * @param type $config
  * @expectedException Assert\InvalidArgumentException
  */
 public function testInvalidConfig($config)
 {
     Section::create($config);
 }
Beispiel #2
0
 public function __construct($config)
 {
     foreach ($config as $sectionConfig) {
         $this->sections[] = Section::create($sectionConfig);
     }
 }