Current File : //opt/RZphp74/includes/test/XML_Query2XML/tests/XML_Query2XML/settings.php |
<?php
/**This file allows you to change settings for all unit tests.
*
* LICENSE:
* This source file is subject to version 2.1 of the LGPL
* that is bundled with this package in the file LICENSE.
*
* COPYRIGHT:
* Empowered Media
* http://www.empoweredmedia.com
* 481 Eighth Avenue Suite 1530
* New York, NY 10001
*
* @copyright Empowered Media 2006
* @license http://www.gnu.org/copyleft/lesser.html LGPL Version 2.1
* @author Lukas Feiler <lukas.feiler@lukasfeiler.com>
* @package XML_Query2XML
* @version $Id: settings.php 302587 2010-08-20 23:53:59Z clockwerx $
*/
if (getenv('PHP_PEAR_XML_QUERY2XML_TEST_DSN') != '') {
define('DSN', getenv('PHP_PEAR_XML_QUERY2XML_TEST_DSN'));
} else {
//define('DSN', 'mysql://root@localhost/Query2XML_Tests');
//define('DSN', 'pgsql://postgres:test@localhost/query2xml_tests');
define('DSN', 'sqlite:///' . dirname(dirname(__FILE__)) . '/Query2XML_Tests.sq2');
}
if (getenv('PHP_PEAR_XML_QUERY2XML_TEST_LDAPCONFIG') != '') {
$keyValuePairs = explode(',', getenv('PHP_PEAR_XML_QUERY2XML_TEST_LDAPCONFIG'));
for ($i = 0; $i < count($keyValuePairs); $i++) {
$keyValue = explode('=', $keyValuePairs[$i]);
$ldapConfig[$keyValue[0]] = $keyValue[1];
}
} else {
$ldapConfig = array(
'host' => 'localhost',
'port' => 389,
'version' => 3,
'starttls' => false,
'binddn' => '',
'bindpw' => ''
);
}
?>