php env check in test