File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1616 "codeception/codeception" : " ^2.3.2" ,
1717 "nette/bootstrap" : " ^3.0.0" ,
1818 "nette/di" : " ^3.0.0@dev" ,
19- "nette/http" : " ^3.0.0@dev"
19+ "nette/http" : " ^3.0.0@dev" ,
20+ "nette/utils" : " ^3.0.0@dev"
2021 },
2122 "require-dev" : {
2223 "friendsofphp/php-cs-fixer" : " ^2.8.0" ,
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class MyServiceTest extends Unit
4848 }
4949}
5050```
51+ ` useConfigFiles ` method takes array of file paths that are either absolute or relative to suite root.
5152
5253NetteApplicationModule
5354----
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ private function createContainer(): void
147147
148148 $ configFiles = is_array ($ this ->configFiles ) ? $ this ->configFiles : $ this ->config ['configFiles ' ];
149149 foreach ($ configFiles as $ file ) {
150- $ configurator ->addConfig ($ this ->path .'/ ' .$ file );
150+ $ configurator ->addConfig (FileSystem:: isAbsolute ( $ file ) ? $ file : $ this ->path .'/ ' .$ file );
151151 }
152152
153153 $ this ->container = $ configurator ->createContainer ();
You can’t perform that action at this time.
0 commit comments