Merge branch 'v2.6.x'
[m6w6/ext-http] / tests / serialize001.phpt
index b37b230ba901327c1f5a2a4d3c9f4b5848112c98..411e4a3aa1f6546d26129da260b14fd65517d6dd 100644 (file)
@@ -5,16 +5,6 @@ serialization
 --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()) {
@@ -29,12 +19,6 @@ foreach ($ext->getClasses() as $class) {
                                $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);
-               }
        }
 }
 ?>