More hacking to get vfsStream to load in Travis
This commit is contained in:
parent
2dad337c8d
commit
5d14f78d29
1 changed files with 9 additions and 3 deletions
|
@ -2,11 +2,17 @@
|
||||||
|
|
||||||
ob_start();
|
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');
|
$root = vfsStream::setup('site');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue