From 46bad79865ffdc429ac7b5d04638c81bd76b500f Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Fri, 19 Mar 2010 07:19:03 +0100 Subject: [PATCH] Skip testing if PEAR-Log is not available. --- framework/VFS/test/VFS/SmbTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.11.0