HomePhabricator

Make phpunit tests compatible with both PHPUnit 6 and 4.

Authored by WMDE-leszek on Apr 16 2018, 9:20 AM.

Description

Make phpunit tests compatible with both PHPUnit 6 and 4.

Also makes using Hamcrest's assertThat not marked as
risky.

Note: this is also making tests in phpunit/composer
directory required to be run using MW test runner,
as it uses (at least temporarily) MW's traits
that provide PHPUnit compatibility layer,
and mark Hamcrest-asserted as not risky.

Change-Id: I2e34507a25607bd6eec8f4b6ff1d1551f0b892a4

Details