mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
first successful download test works :)
This commit is contained in:
parent
a7d7f311f0
commit
2276704637
1 changed files with 8 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue