Config.w32 chack for both instances of event.h
[m6w6/ext-http] / tests / serialize001.phpt
1 --TEST--
2 serialization
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 skip_client_test();
7 ?>
8 --FILE--
9 <?php
10
11 $ext = new ReflectionExtension("http");
12 foreach ($ext->getClasses() as $class) {
13 if ($class->isInstantiable()) {
14 #printf("%s\n", $class->getName());
15 $instance = $class->newInstance();
16 $serialized = serialize($instance);
17 $unserialized = unserialize($serialized);
18
19 foreach (array("toString", "toArray") as $m) {
20 if ($class->hasMethod($m)) {
21 #printf("%s#%s\n", $class->getName(), $m);
22 $unserialized->$m();
23 }
24 }
25 }
26 }
27 ?>
28 DONE
29 --EXPECTF--
30 DONE