Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (17 sloc) 0.943 kB
<?php
echo "Bootstrapping Tests...\n\n";
defined('LIBRARY_PATH') || define('LIBRARY_PATH', realpath(dirname(__FILE__) . '/../library/'));
echo "Library Path is " . LIBRARY_PATH . "\n\n";
defined('ZEND_LIBRARY_PATH') || define('ZEND_LIBRARY_PATH', realpath(dirname(__FILE__) . '/../../zend/'));
echo "Zend Library Path is " . ZEND_LIBRARY_PATH . "\n\n";
defined('TEST_LIBRARY_PATH') || define('TEST_LIBRARY_PATH', realpath(dirname(__FILE__) . '/library/'));
echo "Test Library Path is " . TEST_LIBRARY_PATH . "\n\n";
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(ZEND_LIBRARY_PATH, LIBRARY_PATH, TEST_LIBRARY_PATH, get_include_path())));
function __autoload($class) {
$file = str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';
include_once("$file");
if (!class_exists($class, false) && !interface_exists($class, false)) {
throw new Exception("Class $class could not be loaded.");
}
}
Jump to Line
Something went wrong with that request. Please try again.