summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAdam Baratz <adambaratz@php.net>2016-09-13 16:43:25 -0400
committerAdam Baratz <adambaratz@php.net>2016-09-13 16:43:25 -0400
commitefadcb0390c3ef1ad0b3c445f886dc697bae44a7 (patch)
tree1fb67445d30718672893de335b25b32226108899 /ext
parent9fb94f03e7b5a3655ae87c819638e3137b729004 (diff)
downloadphp-git-efadcb0390c3ef1ad0b3c445f886dc697bae44a7.tar.gz
Add common suite
Diffstat (limited to 'ext')
-rw-r--r--ext/pdo_dblib/tests/common.phpt17
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',
+];