{"id":15226386,"url":"https://github.com/inpsyde/monkery-test-case","last_synced_at":"2025-10-03T23:33:04.293Z","repository":{"id":56991890,"uuid":"53582259","full_name":"inpsyde/monkery-test-case","owner":"inpsyde","description":"Composes all relevant packages for WP components unit testing","archived":true,"fork":false,"pushed_at":"2024-04-18T12:34:51.000Z","size":50,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-17T09:53:38.443Z","etag":null,"topics":["mockery","php","phpunit","testing","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inpsyde.png","metadata":{"files":{"readme":"README.md","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":"2016-03-10T12:21:52.000Z","updated_at":"2024-09-25T12:42:46.000Z","dependencies_parsed_at":"2024-06-19T03:51:08.441Z","dependency_job_id":"ed1a1a55-1fd3-48b4-aad3-0d4c91996b02","html_url":"https://github.com/inpsyde/monkery-test-case","commit_stats":{"total_commits":59,"total_committers":4,"mean_commits":14.75,"dds":"0.10169491525423724","last_synced_commit":"9e9353f0382cd110a757f017494e3b776a989cb1"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inpsyde%2Fmonkery-test-case","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inpsyde%2Fmonkery-test-case/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inpsyde%2Fmonkery-test-case/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inpsyde%2Fmonkery-test-case/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inpsyde","download_url":"https://codeload.github.com/inpsyde/monkery-test-case/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235204448,"owners_count":18952326,"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":["mockery","php","phpunit","testing","wordpress"],"created_at":"2024-09-28T20:04:54.907Z","updated_at":"2025-10-03T23:32:59.020Z","avatar_url":"https://github.com/inpsyde.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monkery test case\n\nComposes all relevant packages for WP components unit testing ([brain/monkey](https://brain-wp.github.io/BrainMonkey/) and mockery) and provides test cases for PHPUnit that bootstrap Mockery and BrainMonkey. _Monkery_ is a portmanteau of Mockery and Monkey.\n\nInstallation:\n```\ncomposer require --dev inpsyde/monkery-test-case\n```\n\n## Writing tests\n\n```php\n\u003c?php\n\nuse MonkeryTestCase\\BrainMonkeyWpTestCase;\n\nclass MyTest extends BrainMonkeyWpTestCase {\n\n    public function testAnything() {\n\n        // use \\Mockery and \\Brain\\Monkey here\n    }\n}\n```\n\n## But why?\n\nWorking on large projects with several packages that all declare a `...\\Tests\\MockeryTestCase` class which does exactly\nthe same will result in a confusing list of autocomplete suggestions in your IDE. Also, with one central FQCN for the\ntest case class you can use an IDE file template across packages.\n\n## Other Notes\n\n### Crafted by Inpsyde\n\nThe team at [Inpsyde](http://inpsyde.com/) is engineering the Web since 2006.\n\n### Bugs, technical hints or contribute\n\nPlease give us feedback, contribute and file technical bugs on [GitHub Repo](https://github.com/inpsyde/monkery-test-case).\n\n### License\n\nGood news, this plugin is free for everyone! Since it's released under the [GPL](https://github.com/inpsyde/monkery-test-case/blob/main/LICENSE), you can use it free of charge on your personal or commercial blog.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finpsyde%2Fmonkery-test-case","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finpsyde%2Fmonkery-test-case","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finpsyde%2Fmonkery-test-case/lists"}