Make library compatible with PHPUnit 4