diff options
author | Taufan Aditya <toopay@taufanaditya.com> | 2012-05-24 21:15:42 +0200 |
---|---|---|
committer | Taufan Aditya <toopay@taufanaditya.com> | 2012-05-24 21:15:42 +0200 |
commit | e13511a1368adb9914a4252d98cb2d0165138e0d (patch) | |
tree | 765efff93a847171e2b3ab3908bc820ae0e5639e | |
parent | 6bca9f836836f4bea2112cd6635a384e862b4db2 (diff) |
Global class aliasing, at least until namespace introduced into further release
-rw-r--r-- | tests/Bootstrap.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index c14a4dee2..71394720a 100644 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -12,14 +12,17 @@ define('BASEPATH', PROJECT_BASE.'system/'); define('APPPATH', PROJECT_BASE.'application/'); define('VIEWPATH', PROJECT_BASE.''); -// Get vfsStream either via pear or composer +// Get vfsStream either via PEAR or composer if (file_exists('vfsStream/vfsStream.php')) { require_once 'vfsStream/vfsStream.php'; } else { - include_once '../vendor/autoload.php'; + include_once PROJECT_BASE.'vendor/autoload.php'; + class_alias('org\bovigo\vfs\vfsStream', 'vfsStream'); + class_alias('org\bovigo\vfs\vfsStreamDirectory', 'vfsStreamDirectory'); + class_alias('org\bovigo\vfs\vfsStreamWrapper', 'vfsStreamWrapper'); } // Prep our test environment |