[dev] Horde_Imap_Client test failure with latest PHP

Remi Collet remi at fedoraproject.org
Wed Jun 4 18:02:55 UTC 2014


Until 5.4.28 and 5.5.12, Test suite was OK.

Since 5.4.29 and 5.5.13 (and 5.6.0beta3) test fails.

1) Horde_Imap_Client_DateTimeTest::testDateTimeParsing with data set #0
('12 Sep 2007 15:49:12 UT', 1189612152)
Failed asserting that 0 matches expected 1189612152.

/dev/shm/BUILD/php-horde-Horde-Imap-Client-2.21.0/Horde_Imap_Client-2.21.0/test/Horde/Imap/Client/DateTimeTest.php:53

2) Horde_Imap_Client_DateTimeTest::testDateTimeParsing with data set #1
('Fri, 06 Oct 2006 12:15:13 +0100 (GMT+01:00)', 1160133313)
Failed asserting that 0 matches expected 1160133313.

/dev/shm/BUILD/php-horde-Horde-Imap-Client-2.21.0/Horde_Imap_Client-2.21.0/test/Horde/Imap/Client/DateTimeTest.php:53

Are you aware of this ?


>From a quick look, it seems it is not (no more) possible to call a
second time the constructor, after a exception was raised.


The quick (and really dirty patch) fix this.
Probably a more clean solution is possible.


Regards,
Remi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: datetime.patch
Type: text/x-patch
Size: 1151 bytes
Desc: not available
URL: <http://lists.horde.org/archives/dev/attachments/20140604/d7a5c4bd/attachment.bin>


More information about the dev mailing list