]> granicus.if.org Git - php/commitdiff
first unsuccessful test works
authorGreg Beaver <cellog@php.net>
Sun, 30 Nov 2003 22:39:24 +0000 (22:39 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 30 Nov 2003 22:39:24 +0000 (22:39 +0000)
pear/tests/pear_common_downloadHttp.phpt

index 94bc45f9654b0de9b2e455f04662018969fa8bc7..0cec4a4176f27835cc1051045f59e3d2a8c3a9ac 100644 (file)
@@ -51,6 +51,8 @@ $firstone = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'testdown
 $secondone = implode('', file($temp_path . DIRECTORY_SEPARATOR . 'testdownload.tgz'));
 echo ($firstone == $secondone) ? "passed\n" : "failed\n";
 cleanall($temp_path);
+echo "Simple fail:\n";
+PEAR_Common::downloadHttp('http://test.poop.php.net/stuff.tgz', $ui, $temp_path);
 
 // ------------------------------------------------------------------------- //
 
@@ -75,4 +77,6 @@ function cleanall($dir)
 --POST--
 --EXPECT--
 Test static:
-Simple: passed
\ No newline at end of file
+Simple: passed
+Simple fail:
+Caught error: Connection to `test.poop.php.net:80' failed: The operation completed successfully.
\ No newline at end of file