1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/ext/gettext/tests/gettext_basic.phpt
Felipe Pena 3ed829f10e - Added some UEXPECTs
- Fixed some tests
2008-03-22 14:58:29 +00:00

32 lines
611 B
PHP

--TEST--
Gettext basic test
--SKIPIF--
<?php
error_reporting(0);
if (!extension_loaded("gettext")) {
die("skip\n");
}
if (!setlocale(LC_ALL, 'fi_FI')) {
die("skip fi_FI locale not supported.");
}
?>
--FILE--
<?php // $Id$
chdir(dirname(__FILE__));
putenv("LANGUAGE=fi");
setlocale(LC_ALL, 'fi_FI');
bindtextdomain ("messages", "./locale");
textdomain ("messages");
echo gettext("Basic test"), "\n";
echo _("Basic test"), "\n";
?>
--EXPECT--
Perustesti
Perustesti
--UEXPECTF--
Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
Perustesti
Perustesti