Draco was glad when Hermione didn't go into the lion's den. Maybe his wishing had influenced her? He doubted it, but he wasn't about to question a good thing. Seeing her pace back and forth, he was getting ready to pounce.
Then, he couldn't believe his eyes. A door had just appeared in the wall. Draco marveled at it and remained motionless and hidden as he did.