Version 1
[yaffs-website] / vendor / caxy / php-htmldiff / tests / Caxy / Tests / TestInit.php
diff --git a/vendor/caxy/php-htmldiff/tests/Caxy/Tests/TestInit.php b/vendor/caxy/php-htmldiff/tests/Caxy/Tests/TestInit.php
new file mode 100644 (file)
index 0000000..46da910
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+/*
+ * This file bootstraps the test environment.
+ */
+namespace Caxy\Tests;
+
+error_reporting(E_ALL | E_STRICT);
+date_default_timezone_set('UTC');
+
+if (!file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
+    throw new \Exception('Can\'t find autoload.php. Did you install dependencies via composer?');
+}
+
+require __DIR__ . '/../../../vendor/autoload.php';