From: Gunnar Wrobel Date: Fri, 19 Mar 2010 06:19:03 +0000 (+0100) Subject: Skip testing if PEAR-Log is not available. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=46bad79865ffdc429ac7b5d04638c81bd76b500f;p=horde.git Skip testing if PEAR-Log is not available. --- diff --git a/framework/VFS/test/VFS/SmbTest.php b/framework/VFS/test/VFS/SmbTest.php index 9022fefd6..efb5e1a4a 100644 --- a/framework/VFS/test/VFS/SmbTest.php +++ b/framework/VFS/test/VFS/SmbTest.php @@ -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);