Closed GaryPEGEOT closed 5 years ago
cool, this is interesting. and nice to see how simple it is. when comparing to https://github.com/php-vcr/php-vcr/, i guess "cassettes" would be the realm of the naming strategy (and could be added later, having a simple naming strategy would be enough to get started imho)
the one thing that i would want to have is to have control over whether recording is ok or not. maybe we could split the plugins into RecordPlugin and ReplayPlugin? or rather have a flag to the plugin to tell it how to behave? separate plugins can be used in own code, and in bundle config the DI could decide which plugin to register.
the problem when you don't have that is that you don't notice when you have missing fixtures and the CI will keep doing actual requests.
Closing as it is duplicated.
What's in this PR?
Add a VCR like plugin to allow storing and replaying response
Why?
Allow user to do functional tests why production-like data and provide same functionality as CsaGuzzleBundle
Example Usage
Checklist
To Do
I sadly have no idea how to write PHPSpec tests, so I writed it with PHPUnit, sorry about that...