reduce php warnings when test