We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CURL record works inside tests. CURL does not work outside tests.
CURL
PHP - 7.4.3
PHP
require_once __DIR__.'/vendor/autoload.php'; \VCR\VCR::configure()->setCassettePath('cassettas'); \VCR\VCR::configure()->enableLibraryHooks(['curl']); \VCR\VCR::turnOn(); \VCR\VCR::insertCassette('example'); $url = 'http://example.com'; $ch = curl_init(); curl_setopt($ch, \CURLOPT_URL, $url); curl_setopt($ch, \CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, \CURLOPT_POST, false); $output = curl_exec($ch); print_r($output); curl_close($ch); \VCR\VCR::eject(); \VCR\VCR::turnOff();
The text was updated successfully, but these errors were encountered:
Can you elaborate on "does not work"? What error do you get? What do you expect to happen but doesn't?
Sorry, something went wrong.
No branches or pull requests
Description
CURL
record works inside tests.CURL
does not work outside tests.Environments
PHP
- 7.4.3my code
The text was updated successfully, but these errors were encountered: