From: Greg Beaver Date: Sun, 30 Nov 2003 22:39:24 +0000 (+0000) Subject: first unsuccessful test works X-Git-Tag: php-5.0.0b3RC1~471 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=685e7a365a209981b6d369882ae909dae4dd235e;p=php first unsuccessful test works --- diff --git a/pear/tests/pear_common_downloadHttp.phpt b/pear/tests/pear_common_downloadHttp.phpt index 94bc45f965..0cec4a4176 100644 --- a/pear/tests/pear_common_downloadHttp.phpt +++ b/pear/tests/pear_common_downloadHttp.phpt @@ -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