{"id":13622720,"url":"https://github.com/phake/phake","last_synced_at":"2025-05-14T01:08:52.308Z","repository":{"id":37365646,"uuid":"458116","full_name":"phake/phake","owner":"phake","description":"PHP Mocking Framework","archived":false,"fork":false,"pushed_at":"2025-03-11T03:07:39.000Z","size":8084,"stargazers_count":476,"open_issues_count":18,"forks_count":87,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-05-02T14:08:24.380Z","etag":null,"topics":["framework","mock","php","phpunit","spy","stub","test-doubles","testing"],"latest_commit_sha":null,"homepage":"https://phake.github.io","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/phake.png","metadata":{"files":{"readme":"README.markdown","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2010-01-04T15:22:10.000Z","updated_at":"2025-02-11T16:04:21.000Z","dependencies_parsed_at":"2023-01-28T13:46:25.104Z","dependency_job_id":"6fcc6131-f188-4d4e-b247-f05578ab9ae7","html_url":"https://github.com/phake/phake","commit_stats":{"total_commits":562,"total_committers":61,"mean_commits":9.21311475409836,"dds":0.7241992882562278,"last_synced_commit":"7b1d29c8d61ec40c3850b88b08d4a23aa6caf98b"},"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phake%2Fphake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phake%2Fphake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phake%2Fphake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phake%2Fphake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phake","download_url":"https://codeload.github.com/phake/phake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253077532,"owners_count":21850342,"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":["framework","mock","php","phpunit","spy","stub","test-doubles","testing"],"created_at":"2024-08-01T21:01:23.301Z","updated_at":"2025-05-14T01:08:47.270Z","avatar_url":"https://github.com/phake.png","language":"PHP","readme":"Phake\n=======\n[![Tests](https://github.com/phake/phake/actions/workflows/tests.yml/badge.svg)](https://github.com/phake/phake/actions/workflows/tests.yml)\n[![Latest Stable Version](http://poser.pugx.org/phake/phake/v)](https://packagist.org/packages/phake/phake)\n[![Total Downloads](http://poser.pugx.org/phake/phake/downloads)](https://packagist.org/packages/phake/phake)\n[![License](http://poser.pugx.org/phake/phake/license)](https://packagist.org/packages/phake/phake)\n\nPhake is a framework for PHP that aims to provide mock objects, test doubles\nand method stubs.\n\nPhake was inspired by a lack of flexibility and ease of use in the current\nmocking frameworks combined with a recent experience with Mockito for Java.\n\nA key conceptual difference in mocking between Phake and most of php mocking\nframeworks (ie: mock functionality in PHPUnit, PHPMock, and mock functionality\nin SimpleTest) is that Phake (like Mockito) employs a verification strategy to\nensure that calls get made. That is to say, you call your code as normal and\nthen after you have finished the code being tested you can verify whether or\nnot expected methods were called. This is very different from the\naforementioned products for php which use an expectation strategy where you\nlay out your expectations prior to any calls being made.\n\nInstallation - Composer\n-----------------------\n\nPhake can be installed using [Composer](https://github.com/composer/composer).\n\n```\ncomposer require --dev phake/phake\n```\n\nInstallation - Source\n---------------------\n\nYou can also of course install it from source by downloading it from our github repository: https://github.com/phake/phake\n\nLinks\n-------------\n\nThere are a few links that have information on how you can utilize Phake.\n\n* [Phake Website](https://phake.github.io)\n* [Phake Documentation](https://phake.github.io/doc/)\n* [Initial Phake Announcement](https://web.archive.org/web/20101230174850/http://digitalsandwich.com/archives/84-introducing-phake-mocking-framework.html)\n* [PHPStorm Plugin](https://plugins.jetbrains.com/plugin/17261-phake)\n\nIf you have an article or tutorial that you would like to share, feel free to open an [issue](https://github.com/phake/phake/issues) on github and I will add it to this list\n","funding_links":[],"categories":["Table of Contents","PHP","目录"],"sub_categories":["Testing","测试 Testing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphake%2Fphake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphake%2Fphake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphake%2Fphake/lists"}