php generated test cases from db