{"id":16827089,"url":"https://github.com/deminy/test-doubles-explained","last_synced_at":"2026-05-17T20:02:48.785Z","repository":{"id":238600663,"uuid":"674309488","full_name":"deminy/test-doubles-explained","owner":"deminy","description":"To explain test doubles in PHPUnit by using various examples.","archived":false,"fork":false,"pushed_at":"2024-05-06T23:59:22.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T19:49:20.532Z","etag":null,"topics":["mocking","php","phpunit","stubbing","test-double","test-doubles"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deminy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-08-03T16:17:05.000Z","updated_at":"2024-05-09T18:22:52.000Z","dependencies_parsed_at":"2024-05-07T00:46:40.321Z","dependency_job_id":null,"html_url":"https://github.com/deminy/test-doubles-explained","commit_stats":null,"previous_names":["deminy/test-doubles-explained"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deminy/test-doubles-explained","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deminy%2Ftest-doubles-explained","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deminy%2Ftest-doubles-explained/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deminy%2Ftest-doubles-explained/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deminy%2Ftest-doubles-explained/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deminy","download_url":"https://codeload.github.com/deminy/test-doubles-explained/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deminy%2Ftest-doubles-explained/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33153662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["mocking","php","phpunit","stubbing","test-double","test-doubles"],"created_at":"2024-10-13T11:19:37.502Z","updated_at":"2026-05-17T20:02:48.756Z","avatar_url":"https://github.com/deminy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"**To explain [test doubles in PHPUnit] by using various examples.**\n\nFor details, please read the source code under folder [./unit] and run [the tests] using PHPUnit.\n\n## Usage\n\nFirst, run the following command to install/update Composer packages:\n\n```bash\ncomposer update -n\n```\n\nNow we can run PHPUnit tests:\n\n```bash\n./vendor/bin/phpunit\n```\n\n## Version Matrix\n\nFollowing table shows the versions of PHP and PHPUnit used to run the tests of this project via GitHub Actions:\n\n| PHP Versions | PHPUnit Versions |\n|--------------|------------------|\n| PHP 7.3      | PHPUnit 9        |\n| PHP 7.4      | PHPUnit 9        |\n| PHP 8.0      | PHPUnit 9        |\n| PHP 8.1      | PHPUnit 10       |\n| PHP 8.2      | PHPUnit 11       |\n| PHP 8.3      | PHPUnit 11       |\n\n## References\n\n* [test doubles in PHPUnit]: The official documentation.\n* [StackOverflow: Mocks vs Stubs in PHPUnit]: Effective comparison of dummies, stubs, mocks, and spies in PHPUnit, although the examples are outdated.\n\n[test doubles in PHPUnit]: https://docs.phpunit.de/en/11.1/test-doubles.html\n[StackOverflow: Mocks vs Stubs in PHPUnit]: https://stackoverflow.com/a/45975572\n[./unit]: https://github.com/deminy/test-doubles-explained/tree/master/unit\n[the tests]: https://github.com/deminy/test-doubles-explained/blob/master/unit/UnitTest.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeminy%2Ftest-doubles-explained","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeminy%2Ftest-doubles-explained","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeminy%2Ftest-doubles-explained/lists"}