Refactoring PHPUnit based integration test