From: Max Semenik Date: Mon, 15 Feb 2010 08:40:02 +0000 (+0000) Subject: Unit tests: don't fail miserably if we don't have CDB support X-Git-Tag: 1.31.0-rc.0~37754 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=5847689d56738bd57d8433e32f651c14577fb00e;p=lhc%2Fweb%2Fwiklou.git Unit tests: don't fail miserably if we don't have CDB support --- diff --git a/maintenance/tests/CdbTest.php b/maintenance/tests/CdbTest.php index 3549c2496a..444229e724 100644 --- a/maintenance/tests/CdbTest.php +++ b/maintenance/tests/CdbTest.php @@ -6,6 +6,12 @@ class CdbTest extends PHPUnit_Framework_TestCase { + public function setup() { + if ( !CdbReader::haveExtension() ) { + $this->markTestIncomplete( 'This test requires native CDB support to be present.' ); + } + } + public function testCdb() { $w1 = new CdbWriter_PHP( 'php.cdb' ); $w2 = new CdbWriter_DBA( 'dba.cdb' );