Browse files

Skip test if touch is not available

  • Loading branch information...
1 parent db9f9ef commit 9a158751223faea67012e8687fceda0408d5af6a @mkoppanen mkoppanen committed Nov 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/expire.phpt
View
2 tests/expire.phpt
@@ -4,7 +4,7 @@ Memcached store, fetch & touch expired key
https://code.google.com/p/memcached/issues/detail?id=275
--SKIPIF--
<?php if (!extension_loaded("memcached")) print "skip";
-if (!is_callable('Memcached::touch')) die ("skip memcached::touch is not available");
+if (!method_exists("memcached", "touch")) die ("skip memcached::touch is not available");
?>
--FILE--
<?php

0 comments on commit 9a15875

Please sign in to comment.