Skip to content

Commit 0d681eb

Browse files
committed
more split
1 parent 2e04bc5 commit 0d681eb

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

ext/intl/tests/timezone_IDforWindowsID_basic.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ intl
88
<?php
99

1010
$tzs = array(
11-
'Gnomeregan' => array(NULL),
1211
'India Standard Time' => array(NULL),
1312
'Pacific Standard Time' => array('001', 'CA', 'MX', 'US', 'ZZ'),
1413
'Romance Standard Time' => array('001', 'BE', 'DK', 'ES', 'FR'),
@@ -25,9 +24,6 @@ foreach ($tzs as $tz => $regions) {
2524
}
2625
?>
2726
--EXPECT--
28-
** Gnomeregan
29-
bool(false)
30-
Error: intltz_get_windows_id: Unknown windows timezone: U_ILLEGAL_ARGUMENT_ERROR
3127
** India Standard Time
3228
string(13) "Asia/Calcutta"
3329
** Pacific Standard Time

ext/intl/tests/timezone_IDforWindowsID_basic2.phpt renamed to ext/intl/tests/timezone_IDforWindowsID_basic_icu58_1.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ intl
99
<?php
1010

1111
$tzs = array(
12-
'Gnomeregan' => array(NULL),
1312
'India Standard Time' => array(NULL),
1413
'Pacific Standard Time' => array('001', 'CA', 'MX', 'US', 'ZZ'),
1514
'Romance Standard Time' => array('001', 'BE', 'DK', 'ES', 'FR'),
@@ -26,9 +25,6 @@ foreach ($tzs as $tz => $regions) {
2625
}
2726
?>
2827
--EXPECTF--
29-
** Gnomeregan
30-
bool(false)
31-
Error: unknown windows timezone: U_ILLEGAL_ARGUMENT_ERROR
3228
** India Standard Time
3329
string(13) "Asia/Calcutta"
3430
** Pacific Standard Time

ext/intl/tests/timezone_IDforWindowsID_basic_icu76_1.phpt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ intl
88
<?php
99

1010
$tzs = array(
11-
'Gnomeregan' => array(NULL),
1211
'India Standard Time' => array(NULL),
1312
'Pacific Standard Time' => array('001', 'CA', 'MX', 'US', 'ZZ'),
1413
'Romance Standard Time' => array('001', 'BE', 'DK', 'ES', 'FR'),
@@ -24,10 +23,7 @@ foreach ($tzs as $tz => $regions) {
2423
}
2524
}
2625
?>
27-
--EXPECTF--
28-
** Gnomeregan
29-
bool(false)
30-
Error: %snknown windows timezone: U_ILLEGAL_ARGUMENT_ERROR
26+
--EXPECT--
3127
** India Standard Time
3228
string(13) "Asia/Calcutta"
3329
** Pacific Standard Time
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
IntlTimeZone::getIDForWindowsID() errors
3+
--EXTENSIONS--
4+
intl
5+
--FILE--
6+
<?php
7+
8+
var_dump(IntlTimeZone::getIDForWindowsID('Gnomeregan', null));
9+
var_dump(intl_get_error_message());
10+
11+
?>
12+
--EXPECT--
13+
bool(false)
14+
string(50) "unknown windows timezone: U_ILLEGAL_ARGUMENT_ERROR"

0 commit comments

Comments
 (0)