]> granicus.if.org Git - php/commitdiff
More tests
authorIlia Alshanetsky <iliaa@php.net>
Wed, 1 Jun 2011 16:59:23 +0000 (16:59 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 1 Jun 2011 16:59:23 +0000 (16:59 +0000)
ext/intl/tests/intl_icu_data_version_constant.phpt [new file with mode: 0644]
ext/intl/tests/resourcebundle_internal.phpt

diff --git a/ext/intl/tests/intl_icu_data_version_constant.phpt b/ext/intl/tests/intl_icu_data_version_constant.phpt
new file mode 100644 (file)
index 0000000..ad01218
--- /dev/null
@@ -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)
index 7aefd854cec1a722457baaa1d4cb518356a83944..fe90081e79b8a41c51ef0618148b3c75af3cc525 100644 (file)
@@ -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');