1--TEST-- 2test if bind_textdomain_codeset() fails on wrong param count 3--SKIPIF-- 4<?php 5 if (!extension_loaded("gettext")) { 6 die("skip"); 7 } 8?> 9--FILE-- 10<?php 11 bind_textdomain_codeset('messages'); 12 bind_textdomain_codeset('messages','foo','bar'); 13 14 echo "Done\n"; 15?> 16--EXPECTF-- 17Warning: bind_textdomain_codeset() expects exactly 2 parameters, 1 given in %s on line %d 18 19Warning: bind_textdomain_codeset() expects exactly 2 parameters, 3 given in %s on line %d 20Done 21--CREDITS-- 22Florian Holzhauer fh-pt@fholzhauer.de 23PHP Testfest Berlin 2009-05-09