updated php examples and testcase with new change of component event handling