Test for job in PHP including polymorph