From 6b0fed32c692fb46a69b7898e9b74b73a1683796 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Sat, 28 Dec 2013 01:36:08 -0500 Subject: [PATCH] Added dependencies Added a hack to work locally for me. May move to using composer to obtain / install vfsStream just didn't like the "vendor" directory, will look into using a custom directory so it can be hidden git ignored. --- .travis.yml | 4 +++- tests/bootstrap.php | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) 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/'));