let DEV_2 be trunk
[m6w6/ext-http] / tests / HttpRequest_007.phpt
diff --git a/tests/HttpRequest_007.phpt b/tests/HttpRequest_007.phpt
deleted file mode 100644 (file)
index 8989de1..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
---TEST--
-HttpRequest PUT
---SKIPIF--
-<?php
-include 'skip.inc';
-checkcls('HttpRequest');
-?>
---FILE--
-<?php
-echo "-TEST\n";
-
-$r = new HttpRequest('http://dev.iworks.at/ext-http/.print_put.php5', HTTP_METH_PUT);
-$r->recordHistory = true;
-$r->addHeaders(array('content-type' => 'text/plain'));
-$r->setPutFile(__FILE__);
-$r->send();
-var_dump($r->getHistory()->toString(true));
-echo "Done\n";
-?>
---EXPECTF--
-%aTEST
-string(%d) "PUT /ext-http/.print_put.php5 HTTP/1.1
-User-Agent: PECL::HTTP/%a
-Host: dev.iworks.at
-Accept: */*
-Content-Type: text/plain
-Content-Length: %d
-Expect: 100-continue
-
-<?php
-echo "-TEST\n";
-
-$r = new HttpRequest('http://dev.iworks.at/ext-http/.print_put.php5', HTTP_METH_PUT);
-$r->recordHistory = true;
-$r->addHeaders(array('content-type' => 'text/plain'));
-$r->setPutFile(__FILE__);
-$r->send();
-var_dump($r->getHistory()->toString(true));
-echo "Done\n";
-?>
-
-HTTP/1.1 100 Continue
-HTTP/1.1 200 OK
-Date: %a
-Server: %a
-Vary: Accept-Encoding
-Content-Type: text/html
-X-Original-Transfer-Encoding: chunked
-Content-Length: %d
-
-<?php
-echo "-TEST\n";
-
-$r = new HttpRequest('http://dev.iworks.at/ext-http/.print_put.php5', HTTP_METH_PUT);
-$r->recordHistory = true;
-$r->addHeaders(array('content-type' => 'text/plain'));
-$r->setPutFile(__FILE__);
-$r->send();
-var_dump($r->getHistory()->toString(true));
-echo "Done\n";
-?>
-
-"
-Done