Skip to content

Commit

Permalink
Add common suite
Browse files Browse the repository at this point in the history
  • Loading branch information
adambaratz committed Sep 13, 2016
1 parent 9fb94f0 commit efadcb0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 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',
];

0 comments on commit efadcb0

Please sign in to comment.