Mock Net::Ping's ping method.