--TEST--
serialization
--SKIPIF--
-<?php include "skipif.inc"; ?>
+<?php
+include "skipif.inc";
+skip_client_test();
+?>
--FILE--
<?php
-class Client extends \http\Client\AbstractClient
-{
- function __construct() {
- parent::__construct();
- $this->request = new \http\Client\Request("GET", "http://localhost");
- }
- function send($request) {
- }
-}
-
$ext = new ReflectionExtension("http");
foreach ($ext->getClasses() as $class) {
if ($class->isInstantiable()) {
$unserialized->$m();
}
}
- if ($class->hasMethod("attach") && !$class->implementsInterface("\\SplSubject")) {
- #printf("%s#%s\n", $class->getName(), "attach");
- $c = new http\Curl\Client;
- $c->setRequest(new http\Client\Request("GET", "http://localhost"));
- $unserialized->attach($c);
- }
}
}
?>