From: Michael J. Rubinsky Date: Wed, 3 Nov 2010 00:21:50 +0000 (-0400) Subject: Fix env variable names X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=03b7a037d39d9887dd6b6ba249e01f927404acc1;p=horde.git Fix env variable names --- diff --git a/framework/Db/doc/README.TESTING.txt b/framework/Db/doc/README.TESTING.txt index 1a03a7407..f6880dc7d 100644 --- a/framework/Db/doc/README.TESTING.txt +++ b/framework/Db/doc/README.TESTING.txt @@ -17,9 +17,9 @@ SQLite tests will always be run. This is possible using the sqlite:memory database; no file access or permissions are required. For the other adapters, the Horde_Db test suite looks for environment variables -named HORDE_DB_TEST_DSN_$driverName. For the MySQLi driver, that would be -HORDE_DB_TEST_DSN_MYSQLI. For the PDO PostgreSQL driver, that would be -Horde_DB_TEST_DSN_PDO_PGSQL, and so on. The value of the environment variable is +named DB_ADAPTER_$driverName_TEST_CONFIG. For the MySQLi driver, that would be +DB_ADAPTER_MYSQLI_TEST_CONFIG. For the PDO PostgreSQL driver, that would be +DB_ADAPTER_PDO_PGSQL_TEST_CONFIG, and so on. The value of the environment variable is a JSON string with the configuration array for the adapter. Here is an example for setting up a test DSN for the MySQL test database on localhost, connecting as the user horde_db with no password: