diff options
author | Adam Baratz <adambaratz@php.net> | 2016-09-13 16:43:25 -0400 |
---|---|---|
committer | Adam Baratz <adambaratz@php.net> | 2016-09-13 16:43:25 -0400 |
commit | efadcb0390c3ef1ad0b3c445f886dc697bae44a7 (patch) | |
tree | 1fb67445d30718672893de335b25b32226108899 /ext | |
parent | 9fb94f03e7b5a3655ae87c819638e3137b729004 (diff) | |
download | php-git-efadcb0390c3ef1ad0b3c445f886dc697bae44a7.tar.gz |
Add common suite
Diffstat (limited to 'ext')
-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', +]; |