1--TEST-- 2FIREBIRD 3--EXTENSIONS-- 4pdo_firebird 5--SKIPIF-- 6<?php # vim:ft=php 7?> 8--REDIRECTTEST-- 9# magic auto-configuration 10 11$config = array( 12 'ENV' => ['LSAN_OPTIONS' => 'detect_leaks=0'], 13 'TESTS' => 'ext/pdo/tests' 14); 15 16 17if (false !== getenv('PDO_FIREBIRD_TEST_DSN')) { 18 # user set them from their shell 19 $config['ENV']['PDOTEST_DSN'] = getenv('PDO_FIREBIRD_TEST_DSN'); 20 $config['ENV']['PDOTEST_USER'] = getenv('PDO_FIREBIRD_TEST_USER'); 21 $config['ENV']['PDOTEST_PASS'] = getenv('PDO_FIREBIRD_TEST_PASS'); 22 if (false !== getenv('PDO_FIREBIRD_TEST_ATTR')) { 23 $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_FIREBIRD_TEST_ATTR'); 24 } 25} else { 26 $config['ENV']['PDOTEST_DSN'] = 'firebird:dbname=/opt/firebird/test.gdb'; 27 $config['ENV']['PDOTEST_USER'] = 'SYSDBA'; 28 $config['ENV']['PDOTEST_PASS'] = 'password'; 29} 30return $config; 31