1--TEST-- 2Test if bindtextdomain() errors if you don't supply enough parameters. 3--SKIPIF-- 4<?php 5if (!extension_loaded("gettext")) { 6 die("skip gettext extension is not loaded.\n"); 7} 8--FILE-- 9<?php 10chdir(dirname(__FILE__)); 11bindtextdomain('foobar'); 12bindtextdomain(); 13--EXPECTF-- 14Warning: bindtextdomain() expects exactly 2 parameters, 1 given in %s on line %d 15 16Warning: bindtextdomain() expects exactly 2 parameters, 0 given in %s on line %d 17--CREDITS-- 18Till Klampaeckel, till@php.net 19PHP Testfest Berlin 2009-05-09 20