protected function setUp() { parent::setUp(); if (!CdbReader::haveExtension()) { $this->markTestSkipped('Native CDB support is not available'); } }
/** * Open a writer and return a subclass instance. * The user must have write access to the directory, for temporary file creation. * * @param $fileName string * * @return CdbWriter_DBA|CdbWriter_PHP */ public static function open($fileName) { if (CdbReader::haveExtension()) { return new CdbWriter_DBA($fileName); } else { wfDebug("Warning: no dba extension found, using emulation.\n"); return new CdbWriter_PHP($fileName); } }
public function setUp() { if (!CdbReader::haveExtension()) { $this->markTestIncomplete('This test requires native CDB support to be present.'); } }
public function setUp() { if (!CdbReader::haveExtension()) { $this->markTestSkipped('Native CDB support is not available'); } }
/** * Open a writer and return a subclass instance. * The user must have write access to the directory, for temporary file creation. * * @param $fileName string * * @return CdbWriterDBA|CdbWriterPHP */ public static function open($fileName) { return CdbReader::haveExtension() ? new CdbWriterDBA($fileName) : new CdbWriterPHP($fileName); }