r62503 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62502‎ | r62503 | r62504 >
Date:08:40, 15 February 2010
Author:maxsem
Status:ok
Tags:
Comment:
Unit tests: don't fail miserably if we don't have CDB support
Modified paths:
  • /trunk/phase3/maintenance/tests/CdbTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/CdbTest.php
@@ -6,6 +6,12 @@
77
88 class CdbTest extends PHPUnit_Framework_TestCase {
99
 10+ public function setup() {
 11+ if ( !CdbReader::haveExtension() ) {
 12+ $this->markTestIncomplete( 'This test requires native CDB support to be present.' );
 13+ }
 14+ }
 15+
1016 public function testCdb() {
1117 $w1 = new CdbWriter_PHP( 'php.cdb' );
1218 $w2 = new CdbWriter_DBA( 'dba.cdb' );

Status & tagging log