Fix PHP error when running tests