Permalink
Browse files

Tweak test, skip instead of FAIL.

  • Loading branch information...
tricky committed May 21, 2010
1 parent dc47bf7 commit de487fffa808d83c206444de390043ec1a613577
@@ -1,8 +1,15 @@
--TEST--
Serializer: exception while serializing
---XFAIL--
--SKIPIF--
-<?php if (!extension_loaded("memcached")) print "skip"; ?>
+<?php
+ if (!extension_loaded("memcached")) print "skip";
+ if ($_ENV['TEST_MEMC_SERIALIZER'] == 'Memcached::SERIALIZER_JSON') {
+ echo "skip skip when using JSON";
+ }
+ if ($_ENV['TEST_MEMC_SERIALIZER'] == 'Memcached::SERIALIZER_PHP' ||
+ !isset($_ENV['TEST_MEMC_SERIALIZER'])) {
+ echo "skip skip when using PHP internal";
+ }
--FILE--
<?php
class Foo {
@@ -1,7 +1,11 @@
--TEST--
Serializer: exception while unserializing
--SKIPIF--
-<?php if (!extension_loaded("memcached")) print "skip"; ?>
+<?php
+ if (!extension_loaded("memcached")) print "skip";
+ if ($_ENV['TEST_MEMC_SERIALIZER'] == 'Memcached::SERIALIZER_JSON') {
+ echo "skip skip when using JSON";
+ }
--FILE--
<?php
class Foo implements Serializable {
@@ -1,7 +1,6 @@
--TEST--
Memcached::set() with bad serialize
--SKIPIF--
---XFAIL--
<?php if (!extension_loaded("memcached")) print "skip"; ?>
--FILE--
<?php
@@ -1,6 +1,5 @@
--TEST--
Memcached::setMultiByKey() with bad serialize
---XFAIL--
--SKIPIF--
<?php if (!extension_loaded("memcached")) print "skip"; ?>
--FILE--

0 comments on commit de487ff

Please sign in to comment.