Refine PHP tests.