php-src/ext/pdo_dblib/tests/common.phpt
Wez Furlong ec50ec65b9 use pdo core test suite.
Now passes all but one test.  Volunteers that want to track down the cause
for test pdo_018.phpt not passing are welcome.
2005-07-20 05:27:27 +00:00

24 lines
603 B
PHP

--TEST--
DBLIB
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded('pdo_dblib')) print 'skip'; ?>
--REDIRECTTEST--
# magic auto-configuration
$config = array(
'TESTS' => 'ext/pdo/tests'
);
if (false !== getenv('PDO_DBLIB_TEST_DSN')) {
# user set them from their shell
$config['ENV']['PDOTEST_DSN'] = getenv('PDO_DBLIB_TEST_DSN');
$config['ENV']['PDOTEST_USER'] = getenv('PDO_DBLIB_TEST_USER');
$config['ENV']['PDOTEST_PASS'] = getenv('PDO_DBLIB_TEST_PASS');
if (false !== getenv('PDO_DBLIB_TEST_ATTR')) {
$config['ENV']['PDOTEST_ATTR'] = getenv('PDO_DBLIB_TEST_ATTR');
}
}
return $config;