aboutsummaryrefslogtreecommitdiff
path: root/tests/bootstrap.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-07-20 07:45:53 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-07-20 07:45:53 +0200
commit2039373b7d60786e5b92a79520cecfcfce34c044 (patch)
treed30dac6fa8c58cd5990c6abfa4fc533f890bfaf3 /tests/bootstrap.php
parent0073743d7518e5899f0cd075a1c7755a9d603bbd (diff)
downloadauerswald-callnotifier-2039373b7d60786e5b92a79520cecfcfce34c044.tar.gz
auerswald-callnotifier-2039373b7d60786e5b92a79520cecfcfce34c044.zip
read TEI and call reference
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r--tests/bootstrap.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
new file mode 100644
index 0000000..a233690
--- /dev/null
+++ b/tests/bootstrap.php
@@ -0,0 +1,18 @@
+<?php
+
+set_include_path(
+ __DIR__ . '/../src/'
+ . PATH_SEPARATOR . get_include_path()
+);
+spl_autoload_register(
+ function ($class) {
+ $file = str_replace(array('\\', '_'), '/', $class) . '.php';
+ $hdl = @fopen($file, 'r', true);
+ if ($hdl !== false) {
+ fclose($hdl);
+ require $file;
+ }
+ }
+);
+
+?>