Skip to content

Commit eac3a2d

Browse files
committed
Merge pull request #82 from derickr/test-name-and-servers
Allow for PHONGO-SERVERS.json in ~ (and fix a test case name) * derickr/test-name-and-servers: Do this with an env var instead Allow for PHONGO-SERVERS.json in ~ (and fix a test case name)
2 parents b1e882e + 1b2f920 commit eac3a2d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/server/server-debug.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
MongoDB\Driver\Server::executeQuery() with sort and empty filter
2+
MongoDB\Driver\Server debugInfo
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
55
--FILE--

tests/utils/basic.inc

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

4-
5-
$FILENAME = sys_get_temp_dir() . "/PHONGO-SERVERS.json";
4+
if (($FILENAME = getenv("PHONGO_SERVERS")) === false) {
5+
$FILENAME = sys_get_temp_dir() . "/PHONGO-SERVERS.json";
6+
}
67

78
$json = file_get_contents($FILENAME);
89
$config = json_decode($json, true);

0 commit comments

Comments
 (0)