mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/10206] Failed unicode.org downloads no longer terminate tests
Instead a warning is triggered and an explanation echo'd. PHPBB3-10206
This commit is contained in:
parent
cdfbd82504
commit
28801d0198
1 changed files with 4 additions and 2 deletions
|
@ -298,12 +298,14 @@ class phpbb_utf_normalizer_test extends phpbb_test_case
|
|||
|
||||
if (!$fpr = fopen($url, 'rb'))
|
||||
{
|
||||
throw new RuntimeException("Failed to download $url");
|
||||
echo "Failed to download $url\n";
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$fpw = fopen($target, 'wb'))
|
||||
{
|
||||
throw new RuntimeException("Failed to open $target for writing");
|
||||
echo "Failed to open $target for writing\n";
|
||||
return;
|
||||
}
|
||||
|
||||
$chunk = 32768;
|
||||
|
|
Loading…
Add table
Reference in a new issue