summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2003-11-30 22:37:47 +0000
committerGreg Beaver <cellog@php.net>2003-11-30 22:37:47 +0000
commit227670463772da85fee2949d68201f5784f34f05 (patch)
tree4ed802e93e96a462c213557046c1eb485c886e83 /pear
parenta7d7f311f07e4667c91f5c292ff120bfd7749dc9 (diff)
downloadphp-git-227670463772da85fee2949d68201f5784f34f05.tar.gz
first successful download test works :)
Diffstat (limited to 'pear')
-rw-r--r--pear/tests/pear_common_downloadHttp.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/pear/tests/pear_common_downloadHttp.phpt b/pear/tests/pear_common_downloadHttp.phpt
index e1c9cacc0e..94bc45f965 100644
--- a/pear/tests/pear_common_downloadHttp.phpt
+++ b/pear/tests/pear_common_downloadHttp.phpt
@@ -44,6 +44,12 @@ function catchit($err)
echo "Caught error: " . $err->getMessage() . "\n";
}
+echo "Test static:\n";
+echo "Simple: ";
+PEAR_Common::downloadHttp('http://test.pear.php.net/testdownload.tgz', $ui, $temp_path);
+$firstone = implode('', file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'testdownload.tgz'));
+$secondone = implode('', file($temp_path . DIRECTORY_SEPARATOR . 'testdownload.tgz'));
+echo ($firstone == $secondone) ? "passed\n" : "failed\n";
cleanall($temp_path);
// ------------------------------------------------------------------------- //
@@ -68,3 +74,5 @@ function cleanall($dir)
--GET--
--POST--
--EXPECT--
+Test static:
+Simple: passed \ No newline at end of file