@@ -100,12 +100,11 @@ class PHP_CodeCoverage_UtilTest extends PHPUnit_Framework_TestCase
100100{
101101 protected function setUp ()
102102 {
103- if (!class_exists ('vfsStreamWrapper ' )) {
104- $ this ->markTestSkipped ('vfsStreamWrapper is not available. ' );
103+ if (!class_exists ('vfsStream ' )) {
104+ $ this ->markTestSkipped ('vfsStream is not available. ' );
105105 }
106106
107- vfsStreamWrapper::register ();
108- vfsStreamWrapper::setRoot (new vfsStreamDirectory ('UtilTest ' ));
107+ vfsStream::setup ('UtilTest ' );
109108 }
110109
111110 /**
@@ -380,7 +379,7 @@ public function testReducePaths3()
380379 */
381380 public function testGetDirectory ()
382381 {
383- if (!class_exists ('vfsStreamWrapper ' )) {
382+ if (!class_exists ('vfsStream ' )) {
384383 $ this ->markTestSkipped ('vfsStream is not installed ' );
385384 }
386385
@@ -395,7 +394,7 @@ public function testGetDirectory()
395394 */
396395 public function testGetDirectory2 ()
397396 {
398- if (!class_exists ('vfsStreamWrapper ' )) {
397+ if (!class_exists ('vfsStream ' )) {
399398 $ this ->markTestSkipped ('vfsStream is not installed ' );
400399 }
401400
@@ -412,7 +411,7 @@ public function testGetDirectory2()
412411 */
413412 public function testGetDirectory3 ()
414413 {
415- if (!class_exists ('vfsStreamWrapper ' )) {
414+ if (!class_exists ('vfsStream ' )) {
416415 $ this ->markTestSkipped ('vfsStream is not installed ' );
417416 }
418417
0 commit comments