Skip to content

Commit aaee430

Browse files
authored
Run tests in parallel (#170)
* Run tests in parallel * Disable/enable some services * Do not install redis on PHP 5.6 * Run composer update * Install redis 3.0.0 * Enable redis extension but do not install * Bugfix * force instsall dependencies * Force install stuff * Fixes * Minors * Updated deps * Debub * Coverage fix * Reduce sleep * Because... you know * Sleep less * Applied changes from StyleCI * Applied changes from StyleCI
1 parent 77c2559 commit aaee430

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Tests/CreateServerTrait.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,13 @@ public function getCollection()
3636

3737
return $this->collection;
3838
}
39+
40+
public static function setUpBeforeClass()
41+
{
42+
if (!class_exists('\MongoDB\Collection')) {
43+
static::markTestSkipped('MonogoDB extension not installed.');
44+
}
45+
46+
parent::setUpBeforeClass();
47+
}
3948
}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"type": "library",
55
"license": "MIT",
66
"minimum-stability": "dev",
7+
"prefer-stable": true,
78
"keywords": [
89
"cache",
910
"psr-6",
@@ -31,7 +32,7 @@
3132
"mongodb/mongodb": "^1.0"
3233
},
3334
"require-dev": {
34-
"phpunit/phpunit": "^4.0 || ^5.1",
35+
"phpunit/phpunit": "^5.7.21",
3536
"cache/integration-tests": "^0.16"
3637
},
3738
"provide": {

0 commit comments

Comments
 (0)