refactor junit.php