Refactoring PHPUnit backend