update php snippet for test class