Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2128a35

Browse filesBrowse files
committed
[Intl] Update intl-data tests to match the latest ICU
1 parent 06c45b4 commit 2128a35
Copy full SHA for 2128a35

File tree

5 files changed

+53
-69
lines changed
Filter options

5 files changed

+53
-69
lines changed

‎src/Symfony/Component/Intl/Tests/Data/Provider/AbstractCurrencyDataProviderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Tests/Data/Provider/AbstractCurrencyDataProviderTest.php
+20-16Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,11 @@ abstract class AbstractCurrencyDataProviderTest extends AbstractDataProviderTest
281281
'UYI',
282282
'UYP',
283283
'UYU',
284+
'UYW',
284285
'UZS',
285286
'VEB',
286287
'VEF',
288+
'VES',
287289
'VND',
288290
'VNN',
289291
'VUV',
@@ -360,8 +362,8 @@ abstract class AbstractCurrencyDataProviderTest extends AbstractDataProviderTest
360362
'CNY' => 156,
361363
'COP' => 170,
362364
'KMF' => 174,
363-
'ZRN' => 180,
364365
'ZRZ' => 180,
366+
'ZRN' => 180,
365367
'CRC' => 188,
366368
'HRK' => 191,
367369
'HRD' => 191,
@@ -390,23 +392,23 @@ abstract class AbstractCurrencyDataProviderTest extends AbstractDataProviderTest
390392
'GIP' => 292,
391393
'GRD' => 300,
392394
'GTQ' => 320,
393-
'GNF' => 324,
394395
'GNS' => 324,
396+
'GNF' => 324,
395397
'GYD' => 328,
396398
'HTG' => 332,
397399
'HNL' => 340,
398400
'HKD' => 344,
399401
'HUF' => 348,
400-
'ISK' => 352,
401402
'ISJ' => 352,
403+
'ISK' => 352,
402404
'INR' => 356,
403405
'IDR' => 360,
404406
'IRR' => 364,
405407
'IQD' => 368,
406408
'IEP' => 372,
407-
'ILS' => 376,
408409
'ILP' => 376,
409410
'ILR' => 376,
411+
'ILS' => 376,
410412
'ITL' => 380,
411413
'JMD' => 388,
412414
'JPY' => 392,
@@ -420,30 +422,30 @@ abstract class AbstractCurrencyDataProviderTest extends AbstractDataProviderTest
420422
'LAK' => 418,
421423
'LBP' => 422,
422424
'LSL' => 426,
423-
'LVL' => 428,
424425
'LVR' => 428,
426+
'LVL' => 428,
425427
'LRD' => 430,
426428
'LYD' => 434,
427-
'LTT' => 440,
428429
'LTL' => 440,
430+
'LTT' => 440,
429431
'LUF' => 442,
430432
'MOP' => 446,
431433
'MGF' => 450,
432434
'MWK' => 454,
433435
'MYR' => 458,
434436
'MVR' => 462,
435437
'MLF' => 466,
436-
'MTP' => 470,
437438
'MTL' => 470,
439+
'MTP' => 470,
438440
'MRO' => 478,
439441
'MUR' => 480,
440-
'MXN' => 484,
441442
'MXP' => 484,
443+
'MXN' => 484,
442444
'MNT' => 496,
443445
'MDL' => 498,
444446
'MAD' => 504,
445-
'MZM' => 508,
446447
'MZE' => 508,
448+
'MZM' => 508,
447449
'OMR' => 512,
448450
'NAD' => 516,
449451
'NPR' => 524,
@@ -452,17 +454,17 @@ abstract class AbstractCurrencyDataProviderTest extends AbstractDataProviderTest
452454
'AWG' => 533,
453455
'VUV' => 548,
454456
'NZD' => 554,
455-
'NIO' => 558,
456457
'NIC' => 558,
458+
'NIO' => 558,
457459
'NGN' => 566,
458460
'NOK' => 578,
459461
'PKR' => 586,
460462
'PAB' => 590,
461463
'PGK' => 598,
462464
'PYG' => 600,
463465
'PEI' => 604,
464-
'PEN' => 604,
465466
'PES' => 604,
467+
'PEN' => 604,
466468
'PHP' => 608,
467469
'PLZ' => 616,
468470
'PTE' => 620,
@@ -484,13 +486,13 @@ abstract class AbstractCurrencyDataProviderTest extends AbstractDataProviderTest
484486
'SIT' => 705,
485487
'SOS' => 706,
486488
'ZAR' => 710,
487-
'RHD' => 716,
488489
'ZWD' => 716,
490+
'RHD' => 716,
489491
'YDD' => 720,
490492
'ESP' => 724,
491493
'SSP' => 728,
492-
'SDP' => 736,
493494
'SDD' => 736,
495+
'SDP' => 736,
494496
'SRG' => 740,
495497
'SZL' => 748,
496498
'SEK' => 752,
@@ -504,8 +506,8 @@ abstract class AbstractCurrencyDataProviderTest extends AbstractDataProviderTest
504506
'TND' => 788,
505507
'TRL' => 792,
506508
'TMM' => 795,
507-
'UGS' => 800,
508509
'UGX' => 800,
510+
'UGS' => 800,
509511
'UAK' => 804,
510512
'MKD' => 807,
511513
'RUR' => 810,
@@ -514,18 +516,20 @@ abstract class AbstractCurrencyDataProviderTest extends AbstractDataProviderTest
514516
'GBP' => 826,
515517
'TZS' => 834,
516518
'USD' => 840,
517-
'UYU' => 858,
518519
'UYP' => 858,
520+
'UYU' => 858,
519521
'UZS' => 860,
520522
'VEB' => 862,
521523
'WST' => 882,
522524
'YER' => 886,
523525
'YUN' => 890,
524-
'CSD' => 891,
525526
'YUM' => 891,
526527
'YUD' => 891,
528+
'CSD' => 891,
527529
'ZMK' => 894,
528530
'TWD' => 901,
531+
'UYW' => 927,
532+
'VES' => 928,
529533
'MRU' => 929,
530534
'STN' => 930,
531535
'CUC' => 931,

‎src/Symfony/Component/Intl/Tests/Data/Provider/AbstractDataProviderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Tests/Data/Provider/AbstractDataProviderTest.php
+14-4Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,6 @@ abstract class AbstractDataProviderTest extends TestCase
267267
'fa_AF',
268268
'fa_IR',
269269
'ff',
270-
'ff_CM',
271-
'ff_GN',
272-
'ff_MR',
273-
'ff_SN',
274270
'fi',
275271
'fi_FI',
276272
'fo',
@@ -350,6 +346,8 @@ abstract class AbstractDataProviderTest extends TestCase
350346
'hu_HU',
351347
'hy',
352348
'hy_AM',
349+
'ia',
350+
'ia_001',
353351
'id',
354352
'id_ID',
355353
'ig',
@@ -370,6 +368,8 @@ abstract class AbstractDataProviderTest extends TestCase
370368
'ja',
371369
'ja_JP',
372370
'ja_JP_TRADITIONAL',
371+
'jv',
372+
'jv_ID',
373373
'ka',
374374
'ka_GE',
375375
'ki',
@@ -387,6 +387,8 @@ abstract class AbstractDataProviderTest extends TestCase
387387
'ko_KR',
388388
'ks',
389389
'ks_IN',
390+
'ku',
391+
'ku_TR',
390392
'kw',
391393
'kw_GB',
392394
'ky',
@@ -410,6 +412,8 @@ abstract class AbstractDataProviderTest extends TestCase
410412
'lv_LV',
411413
'mg',
412414
'mg_MG',
415+
'mi',
416+
'mi_NZ',
413417
'mk',
414418
'mk_MK',
415419
'ml',
@@ -500,6 +504,8 @@ abstract class AbstractDataProviderTest extends TestCase
500504
'ru_UA',
501505
'rw',
502506
'rw_RW',
507+
'sd',
508+
'sd_PK',
503509
'se',
504510
'se_FI',
505511
'se_NO',
@@ -572,6 +578,8 @@ abstract class AbstractDataProviderTest extends TestCase
572578
'ti',
573579
'ti_ER',
574580
'ti_ET',
581+
'tk',
582+
'tk_TM',
575583
'tl',
576584
'tl_PH',
577585
'to',
@@ -601,6 +609,8 @@ abstract class AbstractDataProviderTest extends TestCase
601609
'vi_VN',
602610
'wo',
603611
'wo_SN',
612+
'xh',
613+
'xh_ZA',
604614
'yi',
605615
'yi_001',
606616
'yo',

‎src/Symfony/Component/Intl/Tests/Data/Provider/AbstractRegionDataProviderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Tests/Data/Provider/AbstractRegionDataProviderTest.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ abstract class AbstractRegionDataProviderTest extends AbstractDataProviderTest
270270
'VU',
271271
'WF',
272272
'WS',
273+
'XA',
274+
'XB',
273275
'XK',
274276
'YE',
275277
'YT',

‎src/Symfony/Component/Intl/Tests/Data/Provider/AbstractScriptDataProviderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Tests/Data/Provider/AbstractScriptDataProviderTest.php
-48Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -154,54 +154,6 @@ abstract class AbstractScriptDataProviderTest extends AbstractDataProviderTest
154154
'Phnx',
155155
'Plrd',
156156
'Prti',
157-
'Qaaa',
158-
'Qaab',
159-
'Qaac',
160-
'Qaad',
161-
'Qaae',
162-
'Qaaf',
163-
'Qaag',
164-
'Qaah',
165-
'Qaak',
166-
'Qaal',
167-
'Qaam',
168-
'Qaan',
169-
'Qaao',
170-
'Qaap',
171-
'Qaaq',
172-
'Qaar',
173-
'Qaas',
174-
'Qaat',
175-
'Qaau',
176-
'Qaav',
177-
'Qaaw',
178-
'Qaax',
179-
'Qaay',
180-
'Qaaz',
181-
'Qaba',
182-
'Qabb',
183-
'Qabc',
184-
'Qabd',
185-
'Qabe',
186-
'Qabf',
187-
'Qabg',
188-
'Qabh',
189-
'Qabi',
190-
'Qabj',
191-
'Qabk',
192-
'Qabl',
193-
'Qabm',
194-
'Qabn',
195-
'Qabo',
196-
'Qabp',
197-
'Qabq',
198-
'Qabr',
199-
'Qabs',
200-
'Qabt',
201-
'Qabu',
202-
'Qabv',
203-
'Qabw',
204-
'Qabx',
205157
'Rjng',
206158
'Rohg',
207159
'Roro',

‎src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Tests/NumberFormatter/AbstractNumberFormatterTest.php
+17-1Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function formatCurrencyWithCurrencyStyleProvider()
8585
*/
8686
public function testFormatCurrencyWithCurrencyStyleCostaRicanColonsRounding($value, $currency, $symbol, $expected)
8787
{
88-
IntlTestHelper::requireIntl($this, '58.1');
88+
IntlTestHelper::requireIntl($this, '63.1');
8989

9090
$formatter = $this->getNumberFormatter('en', NumberFormatter::CURRENCY);
9191
$this->assertEquals(sprintf($expected, $symbol), $formatter->formatCurrency($value, $currency));
@@ -132,6 +132,8 @@ public function formatCurrencyWithCurrencyStyleBrazilianRealRoundingProvider()
132132
*/
133133
public function testFormatCurrencyWithCurrencyStyleSwissRounding($value, $currency, $symbol, $expected)
134134
{
135+
IntlTestHelper::requireIntl($this, '62.1');
136+
135137
$formatter = $this->getNumberFormatter('en', NumberFormatter::CURRENCY);
136138
$this->assertEquals(sprintf($expected, $symbol), $formatter->formatCurrency($value, $currency));
137139
}
@@ -176,6 +178,8 @@ public function testFormat()
176178

177179
public function testFormatWithCurrencyStyle()
178180
{
181+
IntlTestHelper::requireIntl($this, '63.1');
182+
179183
$formatter = $this->getNumberFormatter('en', NumberFormatter::CURRENCY);
180184
$this->assertEquals('¤1.00', $formatter->format(1));
181185
}
@@ -208,6 +212,8 @@ public function formatTypeInt32Provider()
208212
*/
209213
public function testFormatTypeInt32WithCurrencyStyle($formatter, $value, $expected, $message = '')
210214
{
215+
IntlTestHelper::requireIntl($this, '63.1');
216+
211217
$formattedValue = $formatter->format($value, NumberFormatter::TYPE_INT32);
212218
$this->assertEquals($expected, $formattedValue, $message);
213219
}
@@ -254,6 +260,8 @@ public function formatTypeInt64Provider()
254260
*/
255261
public function testFormatTypeInt64WithCurrencyStyle($formatter, $value, $expected)
256262
{
263+
IntlTestHelper::requireIntl($this, '63.1');
264+
257265
$formattedValue = $formatter->format($value, NumberFormatter::TYPE_INT64);
258266
$this->assertEquals($expected, $formattedValue);
259267
}
@@ -294,6 +302,8 @@ public function formatTypeDoubleProvider()
294302
*/
295303
public function testFormatTypeDoubleWithCurrencyStyle($formatter, $value, $expected)
296304
{
305+
IntlTestHelper::requireIntl($this, '63.1');
306+
297307
$formattedValue = $formatter->format($value, NumberFormatter::TYPE_DOUBLE);
298308
$this->assertEquals($expected, $formattedValue);
299309
}
@@ -348,6 +358,8 @@ public function formatTypeCurrencyProvider()
348358
*/
349359
public function testFormatFractionDigits($value, $expected, $fractionDigits = null, $expectedFractionDigits = 1)
350360
{
361+
IntlTestHelper::requireIntl($this, '62.1');
362+
351363
$formatter = $this->getNumberFormatter('en', NumberFormatter::DECIMAL);
352364

353365
$attributeRet = null;
@@ -605,6 +617,8 @@ public function testGetSymbol()
605617

606618
public function testGetTextAttribute()
607619
{
620+
IntlTestHelper::requireIntl($this, '63.1');
621+
608622
$decimalFormatter = $this->getNumberFormatter('en', NumberFormatter::DECIMAL);
609623
$currencyFormatter = $this->getNumberFormatter('en', NumberFormatter::CURRENCY);
610624

@@ -623,6 +637,8 @@ public function testGetTextAttribute()
623637
*/
624638
public function testParse($value, $expected, $message, $expectedPosition, $groupingUsed = true)
625639
{
640+
IntlTestHelper::requireIntl($this, '62.1');
641+
626642
$position = 0;
627643
$formatter = $this->getNumberFormatter('en', NumberFormatter::DECIMAL);
628644
$formatter->setAttribute(NumberFormatter::GROUPING_USED, $groupingUsed);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.