More tests

This commit is contained in:
Ilia Alshanetsky 2011-06-01 16:59:23 +00:00
parent e6c9a31c54
commit f7cdabd118
2 changed files with 11 additions and 1 deletions

View 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)

View File

@ -1,7 +1,7 @@
--TEST-- --TEST--
Test ResourceBundle::__construct() with internal ICU bundles Test ResourceBundle::__construct() with internal ICU bundles
--SKIPIF-- --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-- --FILE--
<?php <?php
$b = new ResourceBundle('de_DE', 'ICUDATA-region'); $b = new ResourceBundle('de_DE', 'ICUDATA-region');