Update to phpunit 4

phpunit is now on a new major version. Possible backwards compatibility problems are described here: https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.0.0#backwards-compatibility-issues