Skip to content

Commit

Permalink
Global class aliasing, at least until namespace introduced into furth…
Browse files Browse the repository at this point in the history
…er release
  • Loading branch information
toopay committed May 24, 2012
1 parent 6bca9f8 commit e13511a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@
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
Expand Down

0 comments on commit e13511a

Please sign in to comment.