Skip to content

Commit

Permalink
Simplify vfsStream usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Aug 18, 2010
1 parent d54e3b5 commit a341b51
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Tests/PHP/CodeCoverage/UtilTest.php
Expand Up @@ -100,12 +100,11 @@ class PHP_CodeCoverage_UtilTest extends PHPUnit_Framework_TestCase
{
protected function setUp()
{
if (!class_exists('vfsStreamWrapper')) {
$this->markTestSkipped('vfsStreamWrapper is not available.');
if (!class_exists('vfsStream')) {
$this->markTestSkipped('vfsStream is not available.');
}

vfsStreamWrapper::register();
vfsStreamWrapper::setRoot(new vfsStreamDirectory('UtilTest'));
vfsStream::setup('UtilTest');
}

/**
Expand Down Expand Up @@ -380,7 +379,7 @@ public function testReducePaths3()
*/
public function testGetDirectory()
{
if (!class_exists('vfsStreamWrapper')) {
if (!class_exists('vfsStream')) {
$this->markTestSkipped('vfsStream is not installed');
}

Expand All @@ -395,7 +394,7 @@ public function testGetDirectory()
*/
public function testGetDirectory2()
{
if (!class_exists('vfsStreamWrapper')) {
if (!class_exists('vfsStream')) {
$this->markTestSkipped('vfsStream is not installed');
}

Expand All @@ -412,7 +411,7 @@ public function testGetDirectory2()
*/
public function testGetDirectory3()
{
if (!class_exists('vfsStreamWrapper')) {
if (!class_exists('vfsStream')) {
$this->markTestSkipped('vfsStream is not installed');
}

Expand Down

0 comments on commit a341b51

Please sign in to comment.