Permalink
Browse files

Fixed test case

  • Loading branch information...
1 parent 881f81d commit 22d9cd8a00ae4a1425958b545ea89b63d83ea1ee @davidsteinsland davidsteinsland committed Nov 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Cache/Engine/MemcachedEngineTest.php
@@ -224,7 +224,7 @@ public function testIgbinarySerializerSetting() {
*/
public function testMsgpackSerializerSetting() {
$this->skipIf(
- !Memcached::HAVE_MSGPACK,
+ !defined('Memcached::HAVE_MSGPACK') || !Memcached::HAVE_MSGPACK,
'Memcached extension is not compiled with msgpack support'
);
@@ -272,7 +272,7 @@ public function testJsonSerializerThrowException() {
*/
public function testMsgpackSerializerThrowException() {
$this->skipIf(
- Memcached::HAVE_MSGPACK,
+ defined('Memcached::HAVE_MSGPACK') && Memcached::HAVE_MSGPACK,
'Memcached extension is compiled with msgpack support'
);

0 comments on commit 22d9cd8

Please sign in to comment.