4 * This file is part of Twig.
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 if (PHP_VERSION_ID < 50300) {
13 require_once dirname(__FILE__).'/../lib/Twig/Autoloader.php';
14 Twig_Autoloader::register(true);
16 require __DIR__.'/../vendor/autoload.php';
18 if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
19 class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');