From: Stanislav Malyshev Date: Wed, 23 Jul 2008 18:46:09 +0000 (+0000) Subject: add test X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e670fb5872ae0177ed1679eb125c554f71b32da3;p=php add test --- diff --git a/ext/intl/tests/locale_accept.phpt b/ext/intl/tests/locale_accept.phpt new file mode 100755 index 0000000000..923571f8f0 --- /dev/null +++ b/ext/intl/tests/locale_accept.phpt @@ -0,0 +1,46 @@ +--TEST-- +locale_accept_from_http +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: Locale::acceptFromHttp() expects parameter 1 to be string, array given in %s on line %d + +Warning: locale_accept_from_http() expects parameter 1 to be string, array given in %s on line %d +Accepting en-us,en;q=0.5: en_US +Accepting da, en-gb;q=0.8, en;q=0.7: da +Accepting zh, en-us;q=0.8, en;q=0.7: zh +Accepting xx, fr-FR;q=0.3, de-DE;q=0.5: de_DE +Accepting none: +Accepting Array: