The idea's not that you're done for good when the 25min are up. You just take a break. Then you come back to it for another 25min. Maybe you do this for the entire day, maybe you do this a couple times for an entire week. Or longer, I've had projects that stretch over a couple of years, that I rarely spent more than 1-3 hours of any particular day on.
In practice I'll happily ignore the "take a 5 min break" part of the Pomodoro method but I definitely take real breaks every hour or two.