diff options
Diffstat (limited to 'ext/gettext/tests/gettext_basic.phpt')
-rw-r--r-- | ext/gettext/tests/gettext_basic.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/gettext/tests/gettext_basic.phpt b/ext/gettext/tests/gettext_basic.phpt new file mode 100644 index 0000000000..734cc814ad --- /dev/null +++ b/ext/gettext/tests/gettext_basic.phpt @@ -0,0 +1,18 @@ +--TEST-- +Gettext basic test +--SKIPIF-- +<?php if (!extension_loaded("gettext")) print "skip"; ?> +--FILE-- +<?php // $Id$ + +chdir(dirname(__FILE__)); +setlocale(LC_ALL, 'fi_FI'); +bindtextdomain ("messages", "./locale"); +textdomain ("messages"); +echo gettext("Basic test"), "\n"; +echo _("Basic test"), "\n"; + +?> +--EXPECT-- +Perustesti +Perustesti |