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