/**
  *
  */
 public function setUp()
 {
     if (!class_exists('\\org\\bovigo\\vfs\\vfsStream')) {
         $this->markTestSkipped('vfsStream must be enabled.');
     }
     Runkit::requiredBy($this);
     Runkit::redefineConstant('TRANSFORMIST_ROOT', TRANSFORMIST_TEST_RESOURCE);
     $this->vfs = vfsStream::setup('root');
     $this->vfs->addChild(vfsStream::newFile('readable.txt'));
     $this->vfs->addChild(vfsStream::newFile('unreadable.txt', 00));
     $this->vfs->addChild(vfsStream::newDirectory('writable'));
     $this->vfs->addChild(vfsStream::newDirectory('unwritable', 00));
     $this->Transformist = new Transformist();
     $this->MultistepTransformist = new Transformist(array('multistep' => true));
 }
 /**
  *
  */
 public function setUp()
 {
     Runkit::requiredBy($this);
     Runkit::redefineConstant('TRANSFORMIST_ROOT', TRANSFORMIST_TEST_RESOURCE);
     $this->ConverterCollection = new Transformist_ConverterCollection();
 }
 /**
  *
  */
 public function setUp()
 {
     Runkit::requiredBy($this);
     Runkit::reimplementFunction('exec', '$command, &$output, &$status', '$output = array( ); $status = 0;');
 }
 /**
  *
  */
 public function testTypeWithoutFileInfo()
 {
     Runkit::requiredBy($this);
     Runkit::reimplementFunction('class_exists', '$className', 'return false;');
     $FileInfo = new Transformist_FileInfo(vfsStream::url('root/accessible/empty'));
     $caught = false;
     try {
         $FileInfo->type();
     } catch (Transformist_Exception $e) {
         $caught = true;
     }
     $this->assertTrue($caught);
     Runkit::resetFunction('class_exists');
 }