File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ private function setConfigFromFile(): void
128128
129129 private function getConfigFile (): string
130130 {
131- $ configDirectory = $ this ->directory ;
131+ $ configDirectory = rtrim ( $ this ->directory , DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR ;
132132 while (is_dir ($ configDirectory )) {
133133 foreach ($ this ->configNames as $ configName ) {
134134 $ configFullPath = $ configDirectory . $ configName ;
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function testConstructWithSettingsFile(): void
7373 {
7474 $ configDir = __DIR__ . '/src/ ' ;
7575 $ return = include "{$ configDir }/xr.php " ;
76- $ xr = (new Xr ())->withConfigDir ($ configDir );
76+ $ xr = (new Xr ())->withConfigDir ($ configDir . ' config-dir-empty ' );
7777 $ this ->assertSame ($ return ['isEnabled ' ], $ xr ->isEnabled ());
7878 $ return ['privateKey ' ] = PublicKeyLoader::load ($ return ['key ' ]);
7979 unset($ return ['isEnabled ' ], $ return ['key ' ]);
You can’t perform that action at this time.
0 commit comments