From: Stanislav Malyshev Date: Wed, 23 Jul 2008 01:18:25 +0000 (+0000) Subject: add test X-Git-Tag: php-5.3.0alpha1~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7e1aefd7fc0190b4238ef5a6d0f423287443262;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: