Files
php-uuid/tests/bootstrap.php
T
Johnson 6ae242b0cc Set the default timezone to avoid errors in hhvm
Added a default timezone to the bootstrap.php to fix errors in HHVM
tests, which was introduced when Travis removed the default `/etc/hhvm/php.ini`
in https://github.com/travis-ci/travis-ci/issues/2523#issuecomment-59303763
2014-10-19 17:58:09 +11:00

17 lines
607 B
PHP

<?php
error_reporting(E_ALL | E_STRICT);
date_default_timezone_set('UTC');
// Ensure that composer has installed all dependencies
if (!file_exists(dirname(__DIR__) . '/vendor/autoload.php')) {
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");
}
// Include the Composer autoloader
$loader = include realpath(dirname(__FILE__) . '/../vendor/autoload.php');
$loader->add("Doctrine\Tests\DBAL", __DIR__."/../vendor/doctrine/dbal/tests");
$loader->addPsr4('Rhumsaa\\Uuid\\', __DIR__);