Skip to content

Commit

Permalink
Revert env
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Feb 22, 2025
1 parent 62a9c65 commit 7785feb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"roave/infection-static-analysis-plugin": "^1.16",
"spatie/phpunit-watcher": "^1.23",
"vimeo/psalm": "^5.25",
"vlucas/phpdotenv": "^5.6",
"yiisoft/aliases": "^2.0",
"yiisoft/cache-file": "^3.1",
"yiisoft/var-dumper": "^1.5"
Expand Down
6 changes: 6 additions & 0 deletions tests/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ENVIRONMENT=local
YII_ORACLE_SID=XE
YII_ORACLE_HOST=oracle
YII_ORACLE_PORT=1521
YII_ORACLE_USER=system
YII_ORACLE_PASSWORD=root
5 changes: 3 additions & 2 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare(strict_types=1);

if (getenv('ENVIRONMENT', true) === 'local') {
putenv('YII_ORACLE_HOST=oracle');
if (getenv('ENVIRONMENT', local_only: true) === 'local') {
$dotenv = Dotenv\Dotenv::createUnsafeImmutable(__DIR__);
$dotenv->load();
}

0 comments on commit 7785feb

Please sign in to comment.