From 34645282ce1e2ae187bce3eb492a127cf8531a6a Mon Sep 17 00:00:00 2001 From: Alexander Letov Date: Tue, 6 Dec 2011 14:41:47 +0400 Subject: [PATCH] Fixed vfsStream to version 0.11.1 (work with both 0.10.1 and 0.11.1) --- tests/LoadTest.php | 1 + tests/logger/FileLoggerTest.php | 1 + tests/view/PHPViewTest.php | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/LoadTest.php b/tests/LoadTest.php index d3458d3..78e9e43 100644 --- a/tests/LoadTest.php +++ b/tests/LoadTest.php @@ -42,6 +42,7 @@ class LoadTest extends PHPUnit_Framework_TestCase self::$autoload_array = array('Db' => '/lib/core/model/Db.php', 'DbDriver' => '/lib/core/model/DbDriver.php'); vfsStreamWrapper::register(); + vfsStream::setup(); $this->root = vfsStream::create( array( 'lib' => array( diff --git a/tests/logger/FileLoggerTest.php b/tests/logger/FileLoggerTest.php index acea352..889f985 100644 --- a/tests/logger/FileLoggerTest.php +++ b/tests/logger/FileLoggerTest.php @@ -30,6 +30,7 @@ class FileLoggerTest extends PHPUnit_Framework_TestCase public function setUp() { vfsStreamWrapper::register(); + vfsStream::setup(); $root = vfsStream::create(array()); vfsStreamWrapper::setRoot($root); $this->conf = array('logger' => 'FileLogger', 'filepath' => vfsStream::url('root/log.txt')); diff --git a/tests/view/PHPViewTest.php b/tests/view/PHPViewTest.php index c4aa69a..99dcc0e 100644 --- a/tests/view/PHPViewTest.php +++ b/tests/view/PHPViewTest.php @@ -28,6 +28,7 @@ class PHPViewTest extends PHPUnit_Framework_TestCase public function setUp() { vfsStreamWrapper::register(); + vfsStream::setup(); $root = vfsStream::create(array()); vfsStreamWrapper::setRoot($root); $views_dir = vfsStream::newDirectory('views');