php-src/ext/intl/tests/intl_get_error_code.phpt
Nikita Popov 7485978339
Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

25 lines
382 B
PHP

--TEST--
intl_get_error_code()
--EXTENSIONS--
intl
--FILE--
<?php
/*
* Check getting global error code.
*/
// Suppress warning messages.
error_reporting( E_ERROR );
if( collator_get_locale(new Collator('en_US'), -1) !== false )
echo "failed\n";
else
{
$check_code = ( intl_get_error_code() != 0 );
echo ( $check_code ? "ok" : "failed" ) . "\n";
}
?>
--EXPECT--
ok