diff --git a/phpunit.xml.dist b/phpunit.xml.dist index ada74cb23..2b12f4ecb 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -12,6 +12,18 @@ tests + + + + + + + + + + + + src diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 99b776def..4f2e9ae33 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,18 +1,18 @@ [ - "host" => "localhost", - "port" => 8086, - "protocol" => "http", - "database" => "tcp.test", - "username" => "root", - "password" => "root", + "host" => getenv('HOST'), + "port" => getenv('TCP_PORT'), + "protocol" => getenv('TCP_PROTOCOL'), + "database" => getenv('TCP_DB'), + "username" => getenv('USERNAME'), + "password" => getenv('PASSWORD'), ], "udp" => [ - "host" => "localhost", - "port" => 5551, - "database" => "udp.test", - "username" => "root", - "password" => "root" + "host" => getenv('HOST'), + "port" => getenv('UDP_PORT'), + "database" => getenv('UDP_DB'), + "username" => getenv('USERNAME'), + "password" => getenv('PASSWORD'), ], ];