News for hackers. Stuff that matters.
Re:Toro - a php micro-router with great examples by skrebbel on Thursday August 23, 2012 @04:13PM (#4424569)
That's not the problem this solves. This is 91 lines of code that solve one problem, routing, and that problem only. You filter input right afterwards.

And how is this untestable, exactly? It's really easy to fake http requests in php-cli from a unit test, for instance. And is there any other way you'd want to test a router than by faking php requests? I somewhat wonder whether the fact that this happens to be PHP biased your judgment.

There are no comments on this comment yet.