diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2011-06-01 16:59:23 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2011-06-01 16:59:23 +0000 |
| commit | be20efc476683eb46b90c1ec4375acadb278d8db (patch) | |
| tree | c508dc60f7dbe5c86cacb0b4f14787560466da2b | |
| parent | ccd3633b5c8c19cbab0712c03c65ff183680cab0 (diff) | |
| download | php-git-be20efc476683eb46b90c1ec4375acadb278d8db.tar.gz | |
More tests
| -rw-r--r-- | ext/intl/tests/intl_icu_data_version_constant.phpt | 10 | ||||
| -rw-r--r-- | ext/intl/tests/resourcebundle_internal.phpt | 2 |
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'); |
