Skip testing if PEAR-Log is not available.
authorGunnar Wrobel <p@rdus.de>
Fri, 19 Mar 2010 06:19:03 +0000 (07:19 +0100)
committerGunnar Wrobel <p@rdus.de>
Fri, 19 Mar 2010 06:19:03 +0000 (07:19 +0100)
framework/VFS/test/VFS/SmbTest.php

index 9022fef..efb5e1a 100644 (file)
@@ -14,6 +14,10 @@ class VFS_SmbTest extends PHPUnit_Framework_TestCase
 {
     public function testParseListing()
     {
+        if (!class_exists('Log')) {
+            $this->markTestSkipped('The PEAR-Log package is not installed!');
+        }
+
         $vfs = new VFS_smb();
 
         $listing = $vfs->parseListing(file(dirname(__FILE__) . '/fixtures/samba1.txt'), null, true, false);