summaryrefslogtreecommitdiff
path: root/pear/tests
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2003-11-30 22:51:17 +0000
committerGreg Beaver <cellog@php.net>2003-11-30 22:51:17 +0000
commitbfc02f7223e3735e7f862e69622477078da1209c (patch)
treeefc2e9083be682c75e73a14e2184ae878df3a0c9 /pear/tests
parent398dec718ab3434dd26c7ec78d0681eeaa2dbe1b (diff)
downloadphp-git-bfc02f7223e3735e7f862e69622477078da1209c.tar.gz
finish unit test with non-working download test with callback
Diffstat (limited to 'pear/tests')
-rw-r--r--pear/tests/pear_common_downloadHttp.phpt14
1 files changed, 13 insertions, 1 deletions
diff --git a/pear/tests/pear_common_downloadHttp.phpt b/pear/tests/pear_common_downloadHttp.phpt
index 450f1c3b5a..a9ba27f22c 100644
--- a/pear/tests/pear_common_downloadHttp.phpt
+++ b/pear/tests/pear_common_downloadHttp.phpt
@@ -77,6 +77,9 @@ function myCallback($message, $payload)
echo "Callback Payload: $stuff\n";
}
+echo "Callback fail:\n";
+PEAR_Common::downloadHttp('http://test.poop.php.net/stuff.tgz', $ui, $temp_path, 'myCallback');
+
cleanall($temp_path);
// ------------------------------------------------------------------------- //
@@ -199,4 +202,13 @@ Callback Message: bytesread
Callback Payload: i:41655;
Callback Message: done
Callback Payload: i:41655;
-Working Callback: passed \ No newline at end of file
+Working Callback: passed
+Callback fail:
+Callback Message: setup
+Callback Payload: a:1:{i:0;s:5:"My UI";}
+Callback Message: message
+Callback Payload: s:35:"Using HTTP proxy test.poop.php.net:";
+Callback Message: connfailed
+Callback Payload: a:4:{i:0;s:17:"test.poop.php.net";i:1;i:80;i:2;i:0;i:3;s:39:"The operation completed successfully.
+";}
+Caught error: Connection to `test.poop.php.net:80' failed: The operation completed successfully. \ No newline at end of file