Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (22 sloc) 1.15 kB
<?php
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 http://getcomposer.org 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';
Guzzle\Tests\GuzzleTestCase::setServiceBuilder(Guzzle\Service\Builder\ServiceBuilder::factory($servicesFile));
// 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.