refactor phpunit file