Fixed vfsStream to version 0.11.1 (work with both 0.10.1 and 0.11.1)
This commit is contained in:
committed by
Anton Terekhov
parent
400d2667df
commit
34645282ce
@ -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(
|
||||
|
@ -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'));
|
||||
|
@ -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');
|
||||
|
Reference in New Issue
Block a user