xref: /PHP-8.2/ext/gettext/tests/dcngettext.phpt (revision 25c09939)
1--TEST--
2dcngettext() tests
3--EXTENSIONS--
4gettext
5--SKIPIF--
6<?php
7if (!function_exists("dcngettext")) die("skip dcngettext() doesn't exist");
8?>
9--FILE--
10<?php
11
12var_dump(dcngettext(1,1,1,1,1));
13var_dump(dcngettext("test","test","test",1,1));
14var_dump(dcngettext("test","test","test",0,1));
15var_dump(dcngettext("test","test","test",-1,-1));
16var_dump(dcngettext("","","",1,1));
17var_dump(dcngettext("","","",0,1));
18
19echo "Done\n";
20?>
21--EXPECT--
22string(1) "1"
23string(4) "test"
24string(4) "test"
25string(4) "test"
26string(0) ""
27string(0) ""
28Done
29