mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
More tests
This commit is contained in:
parent
ccd3633b5c
commit
be20efc476
2 changed files with 11 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue