$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);
// ------------------------------------------------------------------------- //
--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