I saw a lady recently with a painful foot - it was painful when she woke up. Doesn't remember injuring it, but; 'would like an Xray please in case I broke it rolling over in my sleep'!
Now I don't know about you, but since I had my kids I've been a fairly light sleeper and tend to wake at the slightest sound. Before the advent of nippers I would sleep like a log and be virtually unwakeable. However, if I injured myself during the night, I'm sure I would wake up - probably screaming in pain!
In order to break a bone in one's foot, it is acknowledged that significant force must be applied to the foot. It doesn't just happen when you roll over in the night.
So unless someone drove a car over your foot whilst you were sleeping, a maniac came into your room and twatted your foot with a sledge hammer, or you indulge in skydiving whilst asleep. It is highly unlikely that you have a broken bone in your foot. So an Xray is not indicated, is it?
Oh, and some bastard painkillers might help as well!