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.
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 theCake\Network\Request
object for easily writing tests.What do you think @dakota?