mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
More tests
This commit is contained in:
parent
e6c9a31c54
commit
f7cdabd118
10
ext/intl/tests/intl_icu_data_version_constant.phpt
Normal file
10
ext/intl/tests/intl_icu_data_version_constant.phpt
Normal file
@ -0,0 +1,10 @@
|
||||
--TEST--
|
||||
INTL_ICU_DATA_VERSION constant
|
||||
--SKIPIF--
|
||||
<?php if( !extension_loaded( 'intl' ) || version_compare('INTL_ICU_VERSION', '4.4', '<') ) print 'skip'; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(defined("INTL_ICU_DATA_VERSION"));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
@ -1,7 +1,7 @@
|
||||
--TEST--
|
||||
Test ResourceBundle::__construct() with internal ICU bundles
|
||||
--SKIPIF--
|
||||
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
|
||||
<?php if( !extension_loaded( 'intl' ) || !defined('INTL_ICU_DATA_VERSION') || version_compare(INTL_ICU_DATA_VERSION, '4.4', '<') ) print 'skip'; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$b = new ResourceBundle('de_DE', 'ICUDATA-region');
|
||||
|
Loading…
Reference in New Issue
Block a user