diff --git a/.travis.yml b/.travis.yml index 02f46e1..8e1afec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,8 @@ language: php php: - "5.5" - - "5.4" + +install: + - require mikey179/vfsStream:1.2.0 script: phpunit --bootstrap ./tests/bootstrap.php ./tests diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 697505e..cffb2e5 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -2,7 +2,12 @@ ob_start(); -require_once '/usr/local/Cellar/php55/5.5.7/lib/php/vfsStream/vfsStream.php'; +$vfs_file = '/usr/local/Cellar/php55/5.5.7/lib/php/vfsStream/vfsStream.php'; + +if (file_exists($vfs_file)) +{ + require_once $vfs_file; +} $root = vfsStream::setup('site'); define('SITE_PATH', vfsStream::url('site/'));