Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 1.12 KB
error_reporting(E_ALL | E_STRICT);
// Ensure that composer has installed all dependencies
if (!file_exists(dirname(__DIR__) . '/composer.lock')) {
die("Dependencies must be installed using composer:\n\nphp composer.phar install --dev\n\n"
. "See for help with installing composer\n");
require_once 'PHPUnit/TextUI/TestRunner.php';
// Include the phar files if testing against the phars
if (get_cfg_var('guzzle_phar')) {
require get_cfg_var('guzzle_phar');
// Include the composer autoloader
$autoloader = require_once dirname(__DIR__) . '/vendor/autoload.php';
// Add the services file to the default service builder
$servicesFile = __DIR__ . '/Guzzle/Tests/TestData/services/services.xml';
// Modify the include path so that it can find the Zend Framework
$paths = array('vendor/zend/zend-cache1', 'vendor/zend/zend-log1');
set_include_path(implode(PATH_SEPARATOR, array_map(function($path) {
return __DIR__ . '/../' . $path;
}, $paths)) . PATH_SEPARATOR . get_include_path());
Jump to Line
Something went wrong with that request. Please try again.