summaryrefslogtreecommitdiffstats
path: root/tests/bootstrap.php
diff options
context:
space:
mode:
authorDavey Shafik <me@daveyshafik.com>2020-08-11 04:47:20 +0000
committerDavey Shafik <me@daveyshafik.com>2020-08-11 04:48:56 +0000
commitfaf80984bbba24f76ce66d3bf15d4628bddca63c (patch)
tree459d4e97bdcd3b4356aeea5f749e0f1b2938a670 /tests/bootstrap.php
parent54d71115ffd916a1e4c630cc74216de8db2c0ac5 (diff)
downloadphp7-mysql-shim-faf80984bbba24f76ce66d3bf15d4628bddca63c.zip
php7-mysql-shim-faf80984bbba24f76ce66d3bf15d4628bddca63c.tar.gz
php7-mysql-shim-faf80984bbba24f76ce66d3bf15d4628bddca63c.tar.bz2
Some minor updates to tests to enable it to work inside CodeSpaces
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r--tests/bootstrap.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index ed6fc04..f8d1391 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -9,3 +9,15 @@
*/
require_once __DIR__ . '/../vendor/autoload.php';
+
+if (getenv('MYSQL_HOST') !== '') {
+ Dshafik\MySQL\Tests\MySqlShimTest::$host = getenv('MYSQL_HOST');
+}
+
+if (getenv('MYSQL_USERNAME') !== '') {
+ Dshafik\MySQL\Tests\MySqlShimTest::$username = getenv('MYSQL_USERNAME');
+}
+
+if (getenv('MYSQL_PASSWORD') !== '') {
+ Dshafik\MySQL\Tests\MySqlShimTest::$password = getenv('MYSQL_PASSWORD');
+} \ No newline at end of file