uafrica / oauth-server

OAuth Server
Other
51 stars 51 forks source link

Integration tests could be made simpler #6

Open jadb opened 9 years ago

jadb commented 9 years ago

Right now, without some serious mocking-fu, I can't write integration tests (let alone unit tests) for the plugin (or the app where I started using it).

After reading the code, I noticed the plugin could inject a custom Request object that would implement the required interface while proxying the Cake\Network\Request object for easily writing tests.

What do you think @dakota?