diff options
author | Nils Adermann <naderman@naderman.de> | 2011-06-10 02:16:19 +0200 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2011-06-10 02:16:19 +0200 |
commit | 28801d01985dcee7c94ad5c54ca5f9ee34592026 (patch) | |
tree | 25ed466744e96fee10096d959dad4dc459ce1b31 /tests/utf/normalizer_test.php | |
parent | cdfbd82504c5433241f83de28e1c9567b2f98b4a (diff) | |
download | forums-28801d01985dcee7c94ad5c54ca5f9ee34592026.tar forums-28801d01985dcee7c94ad5c54ca5f9ee34592026.tar.gz forums-28801d01985dcee7c94ad5c54ca5f9ee34592026.tar.bz2 forums-28801d01985dcee7c94ad5c54ca5f9ee34592026.tar.xz forums-28801d01985dcee7c94ad5c54ca5f9ee34592026.zip |
[ticket/10206] Failed unicode.org downloads no longer terminate tests
Instead a warning is triggered and an explanation echo'd.
PHPBB3-10206
Diffstat (limited to 'tests/utf/normalizer_test.php')
-rw-r--r-- | tests/utf/normalizer_test.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/utf/normalizer_test.php b/tests/utf/normalizer_test.php index 38b4ec1b6b..f78dba8004 100644 --- a/tests/utf/normalizer_test.php +++ b/tests/utf/normalizer_test.php @@ -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; |