Change the PHPUnit version to allow using current versions

The old PHPUnit 3.7 version is not compatible with PHP 5.6
The ``~`` operator never allows to bump the major version (it is a semver operator). ``~4.0`` and ``~4`` are exactly the same.