Re: failing intl test (ext/intl/tests/dateformat_format_variant2.phpt)

From: Date: Mon, 07 Apr 2014 18:06:47 +0000
Subject: Re: failing intl test (ext/intl/tests/dateformat_format_variant2.phpt)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-73626@lists.php.net to get a copy of this message
On 07 Apr 2014, at 19:45, Anatol Belski <anatol.php@belski.net> wrote: > Hi Ferenc, > > On Mon, April 7, 2014 14:48, Ferenc Kovacs wrote: >> Hi, >> >> >> I have never managed to make this test pass for me, even thought that I >> was trying with different ICU versions. I'm currently testing with ICU 52.1 >> from homebrew on Mavericks and with the same ICU version on debian wheezy >> and it fails with the same diff: >> >> 209+ 'timezone_type' => 2,^M >> 210+ 'timezone' => 'PDT',^M >> 209- 'timezone_type' => 3,^M >> 210- 'timezone' => 'America/Los_Angeles',^M >> 217+ 'timezone_type' => 2,^M >> 218+ 'timezone' => 'PDT',^M >> 217- 'timezone_type' => 3,^M >> 218- 'timezone' => 'America/Los_Angeles',^M >> 225+ 'timezone_type' => 2,^M >> 226+ 'timezone' => 'PDT',^M >> 225- 'timezone_type' => 3,^M >> 226- 'timezone' => 'America/Los_Angeles',^M >> 233+ 'timezone_type' => 2,^M >> 234+ 'timezone' => 'PDT',^M >> 233- 'timezone_type' => 3,^M >> 234- 'timezone' => 'America/Los_Angeles',^M >> 241+ 'timezone_type' => 2,^M >> 242+ 'timezone' => 'PDT',^M >> 241- 'timezone_type' => 3,^M >> 242- 'timezone' => 'America/Los_Angeles', >> >> >> Could anybody who has this test passing tell me what ICU version are you >> testing with? >> >> -- >> Ferenc Kovács >> @Tyr43l - http://tyrael.hu >> >> > I've forked this one into ext/intl/tests/dateformat_format_variant3.phpt > and adjusted the output for 52.1. The variant 2 is worky with at least ICI > 51.2, i've added the corresponding condition to the skipif. Looks like > this change happens somewhere between ICU 51.2 and 52. well… the question is: should something like this be tested anyway? tests should cover things which are guaranteed to work specific way by us, not by external libraries. -- Alexey Zakhlestin CTO at Grids.by/you https://github.com/indeyets PGP key: http://indeyets.ru/alexey.zakhlestin.pgp.asc

Attachment: [application/pgp-signature] Message signed with OpenPGP using GPGMail signature.asc
« previous php.internals (#73626) next »