Preparing compatibility with PHPUnit 6
Mathieu Parent <[email protected]> Tue, 15 May 2018 15:20:48 +0200
| Newsgroups | gmane.comp.horde.devel |
|---|---|
| Message-ID | <CAFX5sbyHuPjKwkY_-+Gcii63zdaj_PWGD4hTsV+QcwS=dqtebQ@mail.gmail.com> |
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 -- Mathieu Parent [PHPUnit-5.2.0] https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-5.2.0 -- dev mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]