{"id":19197502,"url":"https://github.com/meetmatt/partial-mock","last_synced_at":"2026-05-15T12:09:05.012Z","repository":{"id":83209632,"uuid":"84122179","full_name":"meetmatt/partial-mock","owner":"meetmatt","description":"PHPUnit partial mock test lab","archived":false,"fork":false,"pushed_at":"2017-03-06T22:08:50.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T06:40:53.734Z","etag":null,"topics":["php","phpunit"],"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/meetmatt.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":"2017-03-06T21:23:29.000Z","updated_at":"2017-03-06T22:01:00.000Z","dependencies_parsed_at":"2023-06-28T22:46:27.973Z","dependency_job_id":null,"html_url":"https://github.com/meetmatt/partial-mock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meetmatt/partial-mock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetmatt%2Fpartial-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetmatt%2Fpartial-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetmatt%2Fpartial-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetmatt%2Fpartial-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meetmatt","download_url":"https://codeload.github.com/meetmatt/partial-mock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetmatt%2Fpartial-mock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33066194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["php","phpunit"],"created_at":"2024-11-09T12:17:01.802Z","updated_at":"2026-05-15T12:09:04.995Z","avatar_url":"https://github.com/meetmatt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPUnit partial mock test lab\n\n## About\n\nThis is a test lab for PHPUnit's ability of partial mocks.\n\n## Overview\n\nA partial mock is simply a pattern to alleviate a specific problem in testing with mock objects, that of getting mock\nobjects into tight corners.\n\n[This](test/UnitTest.php) test case validates PHPUnit's ability to do so.\n[SUT](https://phpunit.de/manual/current/en/test-doubles.html) contains two methods, one of which needs to be tested.\nHowever second method creates an unnecessary overhead for this test case and thus has to be mocked in order to isolate\nthe SUD from side-effects and to separate test case's concerns.\n\n## Dependencies\n\nThis project requires following software:\n - PHP ^5.6\n - [Composer](https://getcomposer.org)\n\n## Tested with\n\nThis project was tested with the following versions of software:\n - PHP 7.0.13\n - PHPUnit 5.7.15\n\n## Installation\n\nInstalls composer dependencies:\n\n```\n$ composer install\n```\n\n## Usage\n\nRun tests to verify PHPUnit features:\n\n```\n$ ./vendor/bin/phpunit --bootstrap vendor/autoload.php ./test\n```\n\n## Contribution\n\nFeel free to send PR's, but I feel really sorry for you if you have nothing to do else.\n\nGuidelines:\n - PSR-4 for SUD classes under `Acme` namespace in [src](src) directory.\n - PSR-4 for test case classes under `Acme\\Test` namespace in [test](test) directory.\n\n## License\n\nLicensed under MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeetmatt%2Fpartial-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeetmatt%2Fpartial-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeetmatt%2Fpartial-mock/lists"}