diff options
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; + } + } +); + +?> |
