Skip to content

Commit 8c81b82

Browse files
Skip MutexConcurrencyTests with PHP 5.6, tests are highly unreliable.
1 parent ed996f7 commit 8c81b82

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"require-dev": {
3030
"ext-memcached": "*",
3131
"ext-redis": "^2.2.4|^3.0|^4.0",
32-
"ext-pdo_mysql": "^7.2",
33-
"ext-pdo_sqlite": "^7.2",
32+
"ext-pdo_mysql": "*",
33+
"ext-pdo_sqlite": "*",
3434
"kriswallsmith/spork": "^0.3",
3535
"mikey179/vfsStream": "^1.5.0",
3636
"phpunit/phpunit": "^5",

tests/mutex/MutexConcurrencyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* @author Markus Malkusch <[email protected]>
2121
* @link bitcoin:1P5FAZ4QhXCuwYPnLZdk3PJsqePbu1UDDA Donations
2222
* @license WTFPL
23+
* @requires PHP
2324
* @see Mutex
2425
*/
2526
class MutexConcurrencyTest extends \PHPUnit_Framework_TestCase
@@ -226,7 +227,7 @@ public function provideMutexFactories()
226227
}];
227228
}
228229

229-
if (getenv("REDIS_URIS")) {
230+
if (getenv("REDIS_URIS") && PHP_VERSION >= "7") {
230231
$uris = explode(",", getenv("REDIS_URIS"));
231232

232233
$cases["PredisMutex"] = [function ($timeout = 3) use ($uris) {

0 commit comments

Comments
 (0)