From 5847689d56738bd57d8433e32f651c14577fb00e Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Mon, 15 Feb 2010 08:40:02 +0000 Subject: [PATCH] Unit tests: don't fail miserably if we don't have CDB support --- maintenance/tests/CdbTest.php | 6 ++++++ 1 file changed, 6 insertions(+) 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' ); -- 2.20.1