Permalink
Browse files

Skip test if touch is not available

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

0 comments on commit db9f9ef

Please sign in to comment.