...but it won't even come to that. It will be exactly the same as when you get stopped for speeding and you KNOW that you weren't speeding.
It will be the police officer's word against yours....and you will wind up paying the fine plus court costs.
It's not worth the risk. There's not a reason in the world to text while driving. Nothing is so important that it can't wait a few minutes.
He'd need a warrant to search your phone....