[dev] Preparing compatibility with PHPUnit 6
Ralf Lang
lang at b1-systems.de
Tue May 15 16:01:58 UTC 2018
Am 15.05.2018 um 15:29 schrieb Andy Dorman:
> On 5/15/18 8:20 AM, Mathieu Parent wrote:
>> Hello,
>>
>> In Debian (and Ubuntu), we need to patch Horde to pass tests with
>> latest phpunit. This leads to divergence with Horde that we want to
>> avoid.
>>
>> I propose to send pull requests to do the following, preserving
>> current compatibility with phpunit 4.8 while preparing for phpunit 6:
>> - 1. Add expectException method to Horde_Test_Case calling
>> parent::expectException on phpunit >= 5.2 and setExpectedException on
>> < 5.2 (see [PHPUnit-5.2.0])
>> - 2. Replace all "extends PHPUnit_Framework_TestCase" by "extends
>> Horde_Test_Case" (> 300 occurences)
>> - 3. Replace all "$this->setExpectedException(...)" calls by
>> "$this->expectException(...)" (this will require a version bump of
>> dependency Horde_Test to the one implementing 1.)
>>
>> This will fix most of the compatibility problems.
>>
>> What do you think? Maybe step 2 can be done by one of the core devs
>> with direct commit rights?
>>
>> Regards
>>
>
> FWIW, we use debian and I concur.
>
That's the kind of refactoring I'd like to test my understanding of
Horde_Refactor with ... but no time before openSUSE Con end of may...
Also jan should comment as the test framework is a sensitive part...
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
More information about the dev
mailing list