X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fserialize001.phpt;fp=tests%2Fserialize001.phpt;h=411e4a3aa1f6546d26129da260b14fd65517d6dd;hb=87db9817d428282792c8146d9c2ae9748ebf6f1e;hp=0000000000000000000000000000000000000000;hpb=7a5c865f6faf8b1b6c91735e9d3b040449ea74ba;p=m6w6%2Fext-http diff --git a/tests/serialize001.phpt b/tests/serialize001.phpt new file mode 100644 index 0000000..411e4a3 --- /dev/null +++ b/tests/serialize001.phpt @@ -0,0 +1,27 @@ +--TEST-- +serialization +--SKIPIF-- + +--FILE-- +getClasses() as $class) { + if ($class->isInstantiable()) { + #printf("%s\n", $class->getName()); + $instance = $class->newInstance(); + $serialized = serialize($instance); + $unserialized = unserialize($serialized); + + foreach (array("toString", "toArray") as $m) { + if ($class->hasMethod($m)) { + #printf("%s#%s\n", $class->getName(), $m); + $unserialized->$m(); + } + } + } +} +?> +DONE +--EXPECTF-- +DONE