Permalink
Browse files

Skipping mongo db test if extension not install

  • Loading branch information...
1 parent 8e1c4d3 commit bab34fb78b1cb500be9485fbd83c918b11f55bfb a_musing_moose committed Feb 22, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/unit-tests/storage/TestMongoDb.php
@@ -24,6 +24,10 @@ class wotsit_storage_TestMongoDb extends PHPUnit_Framework_TestCase
public function setup()
{
+ if (!class_exists('Mongo')) {
+ $this->markTestSkipped("MongoDB extension not install");
+ }
+
$m = new Mongo("mongodb://localhost", array("connect" => false));
try {
$m->connect();

0 comments on commit bab34fb

Please sign in to comment.