diff options
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r-- | tests/bootstrap.php | 12 |
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 |