php-src/ext/intl/tests/intl_is_failure.phpt

26 lines
381 B
Plaintext
Raw Normal View History

2008-07-07 22:51:04 +00:00
--TEST--
intl_is_failure()
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php
/*
* Check determining failure error codes.
*/
function check( $err_code )
{
var_export( intl_is_failure( $err_code ) );
echo "\n";
}
check( U_ZERO_ERROR );
check( U_USING_FALLBACK_WARNING );
check( U_ILLEGAL_ARGUMENT_ERROR );
?>
--EXPECT--
false
false
true