svn: /php/php-src/ branches/PHP_5_3/ext/intl/tests/intl_icu_data_version_constant.phpt branches/PHP_5_3/ext/intl/tests/resourcebundle_internal.phpt
branches/PHP_5_4/ext/intl/tests/intl_icu_data_version_constant.phpt branches/PHP_5_4/ext/intl/tests/resourcebundle_internal.phpt
trunk/ext/intl/tests/intl_icu_data_version_constant.phpt trunk/ext/intl/tests/resourcebundle_internal.phpt
| From: | Ilia Alshanetsky | Date: | Wed, 01 Jun 2011 16:59:23 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/intl/tests/intl_icu_data_version_constant.phpt branches/PHP_5_3/ext/intl/tests/resourcebundle_internal.phpt branches/PHP_5_4/ext/intl/tests/intl_icu_data_version_constant.phpt branches/PHP_5_4/ext/intl/tests/resourcebundle_internal.phpt trunk/ext/intl/tests/intl_icu_data_version_constant.phpt trunk/ext/intl/tests/resourcebundle_internal.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-65083@lists.php.net to get a copy of this message | ||
iliaa Wed, 01 Jun 2011 16:59:23 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311717
Log:
More tests
Changed paths:
A php/php-src/branches/PHP_5_3/ext/intl/tests/intl_icu_data_version_constant.phpt
U php/php-src/branches/PHP_5_3/ext/intl/tests/resourcebundle_internal.phpt
A php/php-src/branches/PHP_5_4/ext/intl/tests/intl_icu_data_version_constant.phpt
U php/php-src/branches/PHP_5_4/ext/intl/tests/resourcebundle_internal.phpt
A php/php-src/trunk/ext/intl/tests/intl_icu_data_version_constant.phpt
U php/php-src/trunk/ext/intl/tests/resourcebundle_internal.phpt
Added: php/php-src/branches/PHP_5_3/ext/intl/tests/intl_icu_data_version_constant.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/intl/tests/intl_icu_data_version_constant.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_3/ext/intl/tests/intl_icu_data_version_constant.phpt 2011-06-01
16:59:23 UTC (rev 311717)
@@ -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)
Modified: php/php-src/branches/PHP_5_3/ext/intl/tests/resourcebundle_internal.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/intl/tests/resourcebundle_internal.phpt 2011-06-01 16:39:36 UTC
(rev 311716)
+++ php/php-src/branches/PHP_5_3/ext/intl/tests/resourcebundle_internal.phpt 2011-06-01 16:59:23 UTC
(rev 311717)
@@ -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');
Added: php/php-src/branches/PHP_5_4/ext/intl/tests/intl_icu_data_version_constant.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/intl/tests/intl_icu_data_version_constant.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_4/ext/intl/tests/intl_icu_data_version_constant.phpt 2011-06-01
16:59:23 UTC (rev 311717)
@@ -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)
Modified: php/php-src/branches/PHP_5_4/ext/intl/tests/resourcebundle_internal.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/intl/tests/resourcebundle_internal.phpt 2011-06-01 16:39:36 UTC
(rev 311716)
+++ php/php-src/branches/PHP_5_4/ext/intl/tests/resourcebundle_internal.phpt 2011-06-01 16:59:23 UTC
(rev 311717)
@@ -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');
Added: php/php-src/trunk/ext/intl/tests/intl_icu_data_version_constant.phpt
===================================================================
--- php/php-src/trunk/ext/intl/tests/intl_icu_data_version_constant.phpt
(rev 0)
+++ php/php-src/trunk/ext/intl/tests/intl_icu_data_version_constant.phpt 2011-06-01 16:59:23 UTC
(rev 311717)
@@ -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)
Modified: php/php-src/trunk/ext/intl/tests/resourcebundle_internal.phpt
===================================================================
--- php/php-src/trunk/ext/intl/tests/resourcebundle_internal.phpt 2011-06-01 16:39:36 UTC (rev
311716)
+++ php/php-src/trunk/ext/intl/tests/resourcebundle_internal.phpt 2011-06-01 16:59:23 UTC (rev
311717)
@@ -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');