As a developer, I want to be able to work on the data-values libraries using the newest PHP version.
**Problem:**
Some of our [data-values libraries](https://github.com/DataValues) still use PHPUnit 4. WikibaseRepo has very clear words for this:
```lang=php,name=repo/tests/phpunit/includes/Parsers/PHPUnit4CompatTrait.php
/**
* Awful hack: several tests extend DataValues test classes. DataValues works on PHPUnit4 only, hence
* it uses setExpectedException (amongst other things). But Wikibase requires PHP 7.2+ and PHPUnit6+,
* where setExpectedException doesn't exist anymore. This was resolved by using the PHPUnit4And6Compat
* trait provided by core, but that's deprecated as of 1.34.
*
* @todo Get rid of this trait as soon as DataValues moves away from withered PHPUnit.
*/
trait PHPUnit4CompatTrait {
```
PHPUnit 4 doesn’t even work under PHP 7.4 anymore, so it’s not possible to test these libraries under the latest released PHP version.
**Example:**
[wmde/Time#149](https://github.com/wmde/Time/pull/149) is an attempt to pull data-values/time into the present day but it’s kicking and screaming and generally being annoying about it.
**Screenshots/mockups:**
**BDD**
GIVEN
AND
WHEN
AND
THEN
AND
**Acceptance criteria:**
* The DataValues libraries use recent versions of PHPUnit, as well as of Wikibase CodeSniffer and other libraries.
**Open questions:**
* We could use this opportunity to move (some of) these libraries into the Wikibase monorepo, as proposed in [ADR #14](https://doc.wikimedia.org/Wikibase/master/php/adr_0014.html). Do we want to do that?