Skip to content

Commit 1b2f920

Browse files
committed
Do this with an env var instead
1 parent ae0cfea commit 1b2f920

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/utils/basic.inc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php
22
require __DIR__ . "/" . "tools.php";
33

4-
if (file_exists("{$_SERVER['HOME']}/PHONGO-SERVERS.json")) {
5-
$FILENAME = "{$_SERVER['HOME']}/PHONGO-SERVERS.json";
6-
} else {
4+
if (($FILENAME = getenv("PHONGO_SERVERS")) === false) {
75
$FILENAME = sys_get_temp_dir() . "/PHONGO-SERVERS.json";
86
}
97

0 commit comments

Comments
 (0)