Ejemplo n.º 1
0
 protected function setUp()
 {
     parent::setUp();
     if (!CdbReader::haveExtension()) {
         $this->markTestSkipped('Native CDB support is not available');
     }
 }
Ejemplo n.º 2
0
 /**
  * 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);
     }
 }
Ejemplo n.º 3
0
 public function setUp()
 {
     if (!CdbReader::haveExtension()) {
         $this->markTestIncomplete('This test requires native CDB support to be present.');
     }
 }
Ejemplo n.º 4
0
 public function setUp()
 {
     if (!CdbReader::haveExtension()) {
         $this->markTestSkipped('Native CDB support is not available');
     }
 }
Ejemplo n.º 5
0
 /**
  * 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);
 }