thephpleague / route

Fast PSR-7 based routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
http://route.thephpleague.com
MIT License
651 stars 126 forks source link

Fix route-specific strategies #191

Closed aag closed 6 years ago

aag commented 6 years ago

This commit fixes issue #190, where setting a strategy on a route had no effect.

I'm not that excited about the tests, since they're long and the assertions are hidden in the mock expectations. However, they will fail if there's a regression and I couldn't figure out a better way to test for the bug. Suggestions for improvement would be most welcome.

philipobenito commented 6 years ago

Thanks 👍