Testing php hooks