Skip to content

Commit

Permalink
Merge pull request #420 from matslindh/fix-missing-mongo-skips
Browse files Browse the repository at this point in the history
Fix MongoDB test dependencies in ImageVariations
  • Loading branch information
rexxars committed Dec 8, 2015
2 parents 9aa9308 + 0f0434f commit 1e778c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
class MongoDBTest extends \PHPUnit_Framework_TestCase {
private $databaseName = 'imboUnitTestDatabase';

protected function setUp() {
if (!class_exists('MongoClient')) {
$this->markTestSkipped('pecl/mongo >= 1.3.0 is required to run this test');
}
}

/**
* @covers Imbo\EventListener\ImageVariations\Database\MongoDB::__construct
* @covers Imbo\EventListener\ImageVariations\Database\MongoDB::storeImageVariationMetadata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
class GridFSTest extends \PHPUnit_Framework_TestCase {
private $databaseName = 'imboGridFSUnitTest';

protected function setUp() {
if (!class_exists('MongoClient')) {
$this->markTestSkipped('pecl/mongo >= 1.3.0 is required to run this test');
}
}

/**
* @covers Imbo\EventListener\ImageVariations\Storage\GridFS::__construct
* @covers Imbo\EventListener\ImageVariations\Storage\GridFS::getGrid
Expand Down

0 comments on commit 1e778c6

Please sign in to comment.