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