We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5484677 commit 6493ed1Copy full SHA for 6493ed1
src/Module/Nette.php
@@ -64,8 +64,12 @@ public function _before(TestCase $test)
64
};
65
66
if ($test instanceof ConfigFilesInterface) {
67
- foreach ($test->getConfigFiles() as $file) {
68
- $this->configurator->addConfig($this->path . DIRECTORY_SEPARATOR . $this->suite . DIRECTORY_SEPARATOR . $file);
+ foreach ($test->getConfigFiles() as $file => $section) {
+ if (!is_string($file)) {
69
+ $file = $section;
70
+ $section = NULL;
71
+ }
72
+ $this->configurator->addConfig($this->path . DIRECTORY_SEPARATOR . $this->suite . DIRECTORY_SEPARATOR . $file, $section);
73
}
74
75
0 commit comments