diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-07-20 07:45:53 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-07-20 07:45:53 +0200 |
| commit | 2039373b7d60786e5b92a79520cecfcfce34c044 (patch) | |
| tree | d30dac6fa8c58cd5990c6abfa4fc533f890bfaf3 /tests/bootstrap.php | |
| parent | 0073743d7518e5899f0cd075a1c7755a9d603bbd (diff) | |
| download | auerswald-callnotifier-2039373b7d60786e5b92a79520cecfcfce34c044.tar.gz auerswald-callnotifier-2039373b7d60786e5b92a79520cecfcfce34c044.zip | |
read TEI and call reference
Diffstat (limited to 'tests/bootstrap.php')
| -rw-r--r-- | tests/bootstrap.php | 18 |
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; + } + } +); + +?> |
