Annotation of embedaddon/php/ext/intl/tests/badargs.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Check that bad argumens return the same
! 3: --SKIPIF--
! 4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
! 5: --FILE--
! 6: <?php
! 7: $funcs = get_extension_funcs("intl");
! 8: function ignore_err() {}
! 9: set_error_handler("ignore_err");
! 10: $arg = new stdClass();
! 11: foreach($funcs as $func) {
! 12: $rfunc = new ReflectionFunction($func);
! 13: if($rfunc->getNumberOfRequiredParameters() == 0) {
! 14: continue;
! 15: }
! 16: $res = $func($arg);
! 17: if($res != false) {
! 18: echo "$func: ";
! 19: var_dump($res);
! 20: }
! 21: }
! 22: echo "OK!\n";
! 23: ?>
! 24: --EXPECT--
! 25: OK!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>