php-swagger-test
php-swagger-test copied to clipboard
Allow custom requester + date match + use trait
Hi again, thank you for your package! I've modified the source to support few things we are currently using:
- I'm unable to extend your class (Laravel TestCase) - I've added underlaying trait that will work the same
- Added support for
date
match (ISO format) - I want to test our api schema without real HTTP connections - I've added ability to test Laravel kernel request -> https://github.com/pionl/laravel-swagger-test. A did not want to add any breaking changes and I've tried to minimize the implementation as possible.
I've not updated your documentation as my English is not so great, but do you want me to edit it?
Thank you for your time
I've update the code based on feedback - thank you for your time.
I think these features are great, however some of them already implemented in the new version.
The CustomRequester feature was implemented by using the PSR7 (Web Request and URI) implementation. These implementation allows you have any implementation you want.
As example of Custom implementation we have the ApiRequester
that actually executes a request to the api and the MockRequester
that emulates the request by calling the class directly.
The other features (trait and date validator) I believe it is a good idea.
Ok guys, I'll split the implmentation, change the the laravel requester and etc and send a new PR. Thank you