From 5d14f78d2994e43e8cd75de8c9e43bb03e4f1fe9 Mon Sep 17 00:00:00 2001 From: Joshua Sherman Date: Sat, 28 Dec 2013 01:44:30 -0500 Subject: [PATCH] More hacking to get vfsStream to load in Travis --- tests/bootstrap.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index cffb2e5..286c2f5 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -2,11 +2,17 @@ ob_start(); -$vfs_file = '/usr/local/Cellar/php55/5.5.7/lib/php/vfsStream/vfsStream.php'; +$vfs_files = [ + '/usr/local/Cellar/php55/5.5.7/lib/php/vfsStream/vfsStream.php', + './vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStream.php', +]; -if (file_exists($vfs_file)) +foreach ($vfs_files as $vfs_file) { - require_once $vfs_file; + if (file_exists($vfs_file)) + { + require_once $vfs_file; + } } $root = vfsStream::setup('site');