Skip to content

Commit

Permalink
Added sections support
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Apr 8, 2015
1 parent 5484677 commit 6493ed1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Module/Nette.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ public function _before(TestCase $test)
};

if ($test instanceof ConfigFilesInterface) {
foreach ($test->getConfigFiles() as $file) {
$this->configurator->addConfig($this->path . DIRECTORY_SEPARATOR . $this->suite . DIRECTORY_SEPARATOR . $file);
foreach ($test->getConfigFiles() as $file => $section) {
if (!is_string($file)) {
$file = $section;
$section = NULL;
}
$this->configurator->addConfig($this->path . DIRECTORY_SEPARATOR . $this->suite . DIRECTORY_SEPARATOR . $file, $section);
}
}

Expand Down

0 comments on commit 6493ed1

Please sign in to comment.