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 // A bug in firebird causes a memory leak when calling `isc_attach_database()`. See https://github.com/FirebirdSQL/firebird/issues/7849 13 'ENV' => ['LSAN_OPTIONS' => 'detect_leaks=0'], 14 'TESTS' => 'ext/pdo/tests' 15); 16 17 18if (false !== getenv('PDO_FIREBIRD_TEST_DSN')) { 19 # user set them from their shell 20 $config['ENV']['PDOTEST_DSN'] = getenv('PDO_FIREBIRD_TEST_DSN'); 21 $config['ENV']['PDOTEST_USER'] = getenv('PDO_FIREBIRD_TEST_USER'); 22 $config['ENV']['PDOTEST_PASS'] = getenv('PDO_FIREBIRD_TEST_PASS'); 23 if (false !== getenv('PDO_FIREBIRD_TEST_ATTR')) { 24 $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_FIREBIRD_TEST_ATTR'); 25 } 26} else { 27 $config['ENV']['PDOTEST_DSN'] = 'firebird:dbname=/opt/firebird/test.gdb'; 28 $config['ENV']['PDOTEST_USER'] = 'SYSDBA'; 29 $config['ENV']['PDOTEST_PASS'] = 'password'; 30} 31return $config; 32