Permalink
Browse files

Skipping mongo db test if extension not install

  • Loading branch information...
1 parent bab34fb commit 86e4e04023f0f310f3b857075bc37436f57524be a_musing_moose committed Feb 22, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/integration-tests/storage/TestMongoDb.php
View
3 tests/integration-tests/storage/TestMongoDb.php
@@ -27,6 +27,9 @@ class 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 86e4e04

Please sign in to comment.