Skip to content

Commit

Permalink
Fix testing again after environment change.
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed May 26, 2017
1 parent cd1c312 commit e3f42e9
Show file tree
Hide file tree
Showing 7 changed files with 198 additions and 116 deletions.
3 changes: 2 additions & 1 deletion application/Config/Autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public function __construct()
$psr4 = [
'Config' => APPPATH.'Config',
APP_NAMESPACE => APPPATH, // For custom namespace
'App' => APPPATH, // To ensure filters, etc still found
'App' => APPPATH, // To ensure filters, etc still found,
'Tests\Support' => TESTPATH, // So custom migrations can run during testing
];

/**
Expand Down
1 change: 1 addition & 0 deletions phpUxcOty
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data
6 changes: 3 additions & 3 deletions system/Config/DotEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ protected function setVariable(string $name, string $value = '')
{
list($name, $value) = $this->normaliseVariable($name, $value);

putenv("$name=$value");
$_ENV[$name] = $value;
$_SERVER[$name] = $value;
if (! getenv($name, true)) putenv("$name=$value");
if (empty($_ENV[$name])) $_ENV[$name] = $value;
if (empty($_SERVER[$name])) $_SERVER[$name] = $value;
}

//--------------------------------------------------------------------
Expand Down
Loading

0 comments on commit e3f42e9

Please sign in to comment.