Yaffs site version 1.1
[yaffs-website] / vendor / twig / twig / test / bootstrap.php
diff --git a/vendor/twig/twig/test/bootstrap.php b/vendor/twig/twig/test/bootstrap.php
new file mode 100644 (file)
index 0000000..d167b67
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+/*
+ * This file is part of Twig.
+ *
+ * (c) Fabien Potencier
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+if (PHP_VERSION_ID < 50300) {
+    require_once dirname(__FILE__).'/../lib/Twig/Autoloader.php';
+    Twig_Autoloader::register(true);
+} else {
+    require __DIR__.'/../vendor/autoload.php';
+
+    if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
+        class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
+    }
+}