{"id":18339182,"url":"https://github.com/php-vcr/phpunit-testlistener-vcr","last_synced_at":"2025-05-15T23:08:10.905Z","repository":{"id":8470181,"uuid":"10069656","full_name":"php-vcr/phpunit-testlistener-vcr","owner":"php-vcr","description":"Integrates PHPUnit with PHP-VCR.","archived":false,"fork":false,"pushed_at":"2024-10-29T19:26:04.000Z","size":57,"stargazers_count":61,"open_issues_count":7,"forks_count":50,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-29T21:29:54.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-vcr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-05-15T02:42:13.000Z","updated_at":"2024-10-29T19:39:51.000Z","dependencies_parsed_at":"2024-11-12T21:01:11.850Z","dependency_job_id":"f146986a-57ed-4f23-8bcc-5c1a62d565fd","html_url":"https://github.com/php-vcr/phpunit-testlistener-vcr","commit_stats":{"total_commits":45,"total_committers":12,"mean_commits":3.75,"dds":0.5555555555555556,"last_synced_commit":"299aaf88533cee3ae64e99bdc6ad5b97fb495f21"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-vcr%2Fphpunit-testlistener-vcr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-vcr%2Fphpunit-testlistener-vcr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-vcr%2Fphpunit-testlistener-vcr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-vcr%2Fphpunit-testlistener-vcr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-vcr","download_url":"https://codeload.github.com/php-vcr/phpunit-testlistener-vcr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436949,"owners_count":22070947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T20:16:48.795Z","updated_at":"2025-05-15T23:08:05.856Z","avatar_url":"https://github.com/php-vcr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPUnit TestListener for PHP-VCR\n\nIntegrates PHPUnit with [PHP-VCR](http://github.com/php-vcr/php-vcr) using annotations.\n\n![PHP-VCR](https://user-images.githubusercontent.com/133832/27151811-0d95c6c4-514c-11e7-834e-eff1eec2ea16.png)\n\nUse `@vcr cassette_name` on your tests to turn VCR automatically on and off.\n\n[![Build Status](https://travis-ci.org/php-vcr/phpunit-testlistener-vcr.svg?branch=master)](https://travis-ci.org/php-vcr/phpunit-testlistener-vcr)\n\n## Usage example\n\n``` php\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass VCRTest extends TestCase\n{\n    /**\n     * @vcr unittest_annotation_test\n     */\n    public function testInterceptsWithAnnotations()\n    {\n        // Content of tests/fixtures/unittest_annotation_test: \"This is a annotation test dummy\".\n        $result = file_get_contents('http://google.com');\n        $this-\u003eassertEquals('This is a annotation test dummy.', $result, 'Call was not intercepted (using annotations).');\n    }\n}\n```\n\n## Installation\n\n1) Install using composer:\n\n``` sh\ncomposer require --dev php-vcr/phpunit-testlistener-vcr\n```\n\n2) Add listener to your `phpunit.xml`:\n\n``` xml\n\u003clisteners\u003e\n    \u003clistener class=\"VCR\\PHPUnit\\TestListener\\VCRTestListener\" file=\"vendor/php-vcr/phpunit-testlistener-vcr/src/VCRTestListener.php\" /\u003e\n\u003c/listeners\u003e\n```\n\n## Dependencies\n\nPHPUnit-Testlistener-VCR depends on:\n  * PHP 7.1+\n  * PHP 7.0+ (use \u003c3.0)\n  * [php-vcr/php-vcr](https://github.com/php-vcr/php-vcr)\n\n## Run tests\n\nIn order to run all tests you need to get development dependencies using composer:\n\n``` php\ncomposer install\n./vendor/bin/phpunit\n```\n\n## Changelog\n\n**The changelog is manage at [PHPUnit testlistener for PHP-VCR releases page](https://github.com/php-vcr/phpunit-testlistener-vcr/releases).**\n\n## Copyright\nCopyright (c) 2013-2018 Adrian Philipp. Released under the terms of the MIT license. See LICENSE for details.\n[Contributors](https://github.com/php-vcr/phpunit-testlistener-vcr/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-vcr%2Fphpunit-testlistener-vcr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-vcr%2Fphpunit-testlistener-vcr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-vcr%2Fphpunit-testlistener-vcr/lists"}