Source for file testenv.php
Documentation is available at testenv.php
* Environment for Trax regression tests
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @copyright (c) Walter O. Haas 2006
* @version $Id: testenv.php 208 2006-05-28 17:59:55Z john $
* @author Walt Haas <haas@xmission.com>
// Test whether this is the Pear installed environment or the
// development environment. The comparison below will succeed in the
// development environment but fail in the installed environment
// because of symbol substitution by the Pear installer.
if ('@PHP-DIR@' == '@'. 'PHP-DIR'. '@') {
// Development environment
define("TRAX_LIB_ROOT", dirname(dirname(__FILE__ ))
. DIRECTORY_SEPARATOR . 'vendor'
. DIRECTORY_SEPARATOR . 'trax');
// Pear installed environment
define("TRAX_LIB_ROOT", "@PHP-DIR@"
. DIRECTORY_SEPARATOR . 'PHPonTrax'
. DIRECTORY_SEPARATOR . 'vendor'
. DIRECTORY_SEPARATOR . 'trax');
ini_set('include_path', '.' . PATH_SEPARATOR
. dirname(__FILE__ ) . PATH_SEPARATOR
# Bootstrap the Trax environment, framework, and default configuration
include_once(dirname(dirname(__FILE__ ))
. DIRECTORY_SEPARATOR . 'config'
. DIRECTORY_SEPARATOR . 'boot.php');
// -- set Emacs parameters --
// c-hanging-comment-ender-p: nil
|