Skip to content

Commit 279fa48

Browse files
Igbinary serializer is not available on travis
1 parent 845d29e commit 279fa48

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/mutex/PHPRedisMutexTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,17 @@ public function testSyncronizedWorks($serialization)
9191
});
9292
}
9393

94-
public function dpSerializationModes() {
95-
return [
94+
public function dpSerializationModes()
95+
{
96+
$serializers = [
9697
[Redis::SERIALIZER_NONE],
9798
[Redis::SERIALIZER_PHP],
98-
[Redis::SERIALIZER_IGBINARY],
9999
];
100+
101+
if (defined("Redis::SERIALIZER_IGBINARY")) {
102+
$serializers[] = [constant("Redis::SERIALIZER_IGBINARY")];
103+
}
104+
105+
return $serializers;
100106
}
101107
}

0 commit comments

Comments
 (0)