<?php

use Desk\Test\Helper\TestCase;
use Guzzle\Service\Builder\ServiceBuilder;

error_reporting(-1);

$ds = DIRECTORY_SEPARATOR;

$autoloader = dirname(__DIR__) . "{$ds}vendor{$ds}autoload.php";

// Ensure that Composer dependencies have been installed locally
if (!file_exists($autoloader)) {
    die(
        "Dependencies must be installed using Composer:\n\n" .
        "composer.phar install --dev\n\n" .
        "See https://github.com/composer/composer/blob/master/README.md " .
        "for help with installing composer\n"
    );
}

// Include the Composer autoloader
require_once $autoloader;

// Configure Guzzle service builder
if (isset($_SERVER['DESK_TEST_CONFIG'])) {
    $config = $_SERVER['DESK_TEST_CONFIG'];
} else {
    $config = __DIR__ . '/service/mock.json';
}

TestCase::setServiceBuilder(ServiceBuilder::factory($config));
TestCase::setTestsBasePath(__DIR__);
TestCase::setMockBasePath(__DIR__ . '/mock');

<?php

use Desk\Test\Helper\TestCase;
use Guzzle\Service\Builder\ServiceBuilder;

ini_set('memory_limit', '256M');
error_reporting(-1);

$ds = DIRECTORY_SEPARATOR;

$autoloader = dirname(__DIR__) . "{$ds}vendor{$ds}autoload.php";

// Ensure that Composer dependencies have been installed locally
if (!file_exists($autoloader)) {
    die(
        "Dependencies must be installed using Composer:\n\n" .
        "composer.phar install --dev\n\n" .
        "See https://github.com/composer/composer/blob/master/README.md " .
        "for help with installing composer\n"
    );
}

// Include the Composer autoloader
require_once $autoloader;

// Configure Guzzle service builder
if (isset($_SERVER['DESK_TEST_CONFIG'])) {
    $config = $_SERVER['DESK_TEST_CONFIG'];
} else {
    $config = __DIR__ . '/service/mock.json';
}

TestCase::setServiceBuilder(ServiceBuilder::factory($config));
TestCase::setTestsBasePath(__DIR__);
TestCase::setMockBasePath(__DIR__ . '/mock');

Fix PHP OOM error while processing test coverage
Fix PHP OOM error while processing test coverage
