summaryrefslogtreecommitdiff
path: root/ext/intl/tests
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2011-06-01 16:59:23 +0000
committerIlia Alshanetsky <iliaa@php.net>2011-06-01 16:59:23 +0000
commitf7cdabd1183bbac53b35895cad8f6e8ade813abf (patch)
tree99e19151fdda9761a570c9bd5ddaca187f97162b /ext/intl/tests
parente6c9a31c54e9da1d57315e7d7eae3dbd1e359d62 (diff)
downloadphp-git-f7cdabd1183bbac53b35895cad8f6e8ade813abf.tar.gz
More tests
Diffstat (limited to 'ext/intl/tests')
-rw-r--r--ext/intl/tests/intl_icu_data_version_constant.phpt10
-rw-r--r--ext/intl/tests/resourcebundle_internal.phpt2
2 files changed, 11 insertions, 1 deletions
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
index 0000000000..ad01218586
--- /dev/null
+++ b/ext/intl/tests/intl_icu_data_version_constant.phpt
@@ -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)
diff --git a/ext/intl/tests/resourcebundle_internal.phpt b/ext/intl/tests/resourcebundle_internal.phpt
index 7aefd854ce..fe90081e79 100644
--- a/ext/intl/tests/resourcebundle_internal.phpt
+++ b/ext/intl/tests/resourcebundle_internal.phpt
@@ -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');