diff options
Diffstat (limited to 'ext/pdo_dblib/tests/common.phpt')
-rw-r--r-- | ext/pdo_dblib/tests/common.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/pdo_dblib/tests/common.phpt b/ext/pdo_dblib/tests/common.phpt new file mode 100644 index 0000000000..27f503c781 --- /dev/null +++ b/ext/pdo_dblib/tests/common.phpt @@ -0,0 +1,17 @@ +--TEST-- +DBLIB +--SKIPIF-- +<?php # vim:ft=php +if (!extension_loaded('pdo_dblib')) die('skip not loaded'); +?> +--REDIRECTTEST-- +# magic auto-configuration + +return [ + 'ENV' => [ + 'PDOTEST_DSN' => getenv('PDO_DBLIB_TEST_DSN') ?: 'dblib:host=localhost;dbname=test', + 'PDOTEST_USER' => getenv('PDO_DBLIB_TEST_USER') ?: 'php', + 'PDOTEST_PASS' => getenv('PDO_DBLIB_TEST_PASS') ?: 'password', + ], + 'TESTS' => __DIR__ . '/ext/pdo/tests', +]; |