mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-26 11:05:28 +01:00
18 lines
941 B
PHP
18 lines
941 B
PHP
<?php
|
|
|
|
error_reporting(E_ALL | E_STRICT);
|
|
|
|
// Ensure that composer has installed all dependencies
|
|
if (!file_exists(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'composer.lock')) {
|
|
die("Dependencies must be installed using composer:\n\ncomposer.phar install --install-suggests\n\n"
|
|
. "See https://github.com/composer/composer/blob/master/README.md for help with installing composer\n");
|
|
}
|
|
|
|
require_once 'PHPUnit/TextUI/TestRunner.php';
|
|
|
|
// Include the composer autoloader
|
|
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . '.composer' . DIRECTORY_SEPARATOR . 'autoload.php';
|
|
|
|
// Add the services file to the default service builder
|
|
$servicesFile = __DIR__ . DIRECTORY_SEPARATOR . 'Guzzle' . DIRECTORY_SEPARATOR . 'Tests' . DIRECTORY_SEPARATOR . 'TestData' . DIRECTORY_SEPARATOR . 'services.xml';
|
|
Guzzle\Tests\GuzzleTestCase::setServiceBuilder(Guzzle\Service\ServiceBuilder::factory($servicesFile)); |