Skip to content

Commit ff0287e

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent e02a357 commit ff0287e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/TestCase.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,14 @@
88
#[RequiresEnvironmentVariable('APP_BASE_PATH')]
99
abstract class TestCase extends BaseTestCase
1010
{
11-
//
11+
/** {@inheritdoc} */
12+
#[\Override]
13+
public function createApplication()
14+
{
15+
if (! isset($_ENV['APP_BASE_PATH']) && isset($_SERVER['APP_BASE_PATH'])) {
16+
$_ENV['APP_BASE_PATH'] = $_SERVER['APP_BASE_PATH'];
17+
}
18+
19+
return parent::createApplication();
20+
}
1221
}

0 commit comments

Comments
 (0)