projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb94f0
)
Add common suite
author
Adam Baratz
<adambaratz@php.net>
Tue, 13 Sep 2016 20:43:25 +0000
(16:43 -0400)
committer
Adam Baratz
<adambaratz@php.net>
Tue, 13 Sep 2016 20:43:25 +0000
(16:43 -0400)
ext/pdo_dblib/tests/common.phpt
[new file with mode: 0644]
patch
|
blob
diff --git a/ext/pdo_dblib/tests/common.phpt
b/ext/pdo_dblib/tests/common.phpt
new file mode 100644
(file)
index 0000000..
27f503c
--- /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',
+];