{"id":20776791,"url":"https://github.com/phpactor/phpunit-extension","last_synced_at":"2026-03-04T11:03:32.613Z","repository":{"id":54756443,"uuid":"159985513","full_name":"phpactor/phpunit-extension","owner":"phpactor","description":"PHPUnit Integration for Phpactor","archived":false,"fork":false,"pushed_at":"2021-02-06T15:25:02.000Z","size":22,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-23T07:02:06.091Z","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/phpactor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-01T20:43:21.000Z","updated_at":"2021-02-06T15:14:26.000Z","dependencies_parsed_at":"2022-08-14T01:50:51.389Z","dependency_job_id":null,"html_url":"https://github.com/phpactor/phpunit-extension","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/phpactor/phpunit-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpactor%2Fphpunit-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpactor%2Fphpunit-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpactor%2Fphpunit-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpactor%2Fphpunit-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpactor","download_url":"https://codeload.github.com/phpactor/phpunit-extension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpactor%2Fphpunit-extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"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":[],"created_at":"2024-11-17T13:11:50.025Z","updated_at":"2026-03-04T11:03:32.579Z","avatar_url":"https://github.com/phpactor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHPUnit Integration\n===================\n\n![CI](https://github.com/phpactor/phpunit-extension/workflows/CI/badge.svg)\n\nPHPUnit integration for [Phpactor](https://github.com/phpactor/phpactor)\n\nFeatures\n--------\n\n- [x] Type inference for `Assert::instanceOf(Foo::class, 'bar')` (for both\n      member and static versions).\n- [x] Generate new test classes\n\nInstallation\n------------\n\nInstall Phpactor with the Phpactor binary:\n\n```php\n$ /path/to/phpactor extension:install phpactor/phpunit-extension\n```\n\nYou can also install extensions from your editor. See\n[extensions](https://phpactor.github.io/phpactor/extensions.html) for more\ndetails.\n\nConfiguration and Usage\n-----------------------\n\n### Test Navigation\n\nPhpactor allows you to jump to related files, just add the following\n[configuration](https://phpactor.github.io/phpactor/configuration.html) to\njump from your standard source code to the test:\n\n```javascript\n{\n    \"navigator.destinations\": {\n        \"source\": \"lib\\/\u003ckernel\u003eTest.php\"\n        \"test\": \"tests\\/Unit\\/\u003ckernel\u003eTest.php\"\n    },\n}\n```\n\nSee [Jump to related\nfile](https://phpactor.github.io/phpactor/navigation.html#jump-to-or-generate-related-file)\nfor more information.\n\n### Test Auto Creation\n\nWhen jumping to a file which does not exist, Phpactor can offer to create a\nfile for you. This plugin includes a simple `phpunit` class generator,\nconfigure (promted) auto-creation as follows:\n\n```javascript\n{\n    \"navigator.autocreate\": {\n        \"source\": \"default\",\n        \"test\": \"phpunit\"\n    }\n}\n```\n\nTODO\n----\n\n- [ ] RPC handlers to run PHPUnit, jump to failing tests?\n\nContributing\n------------\n\nThis package is open source and welcomes contributions! Feel free to open a\npull request on this repository.\n\nSupport\n-------\n\n- Create an issue on the main [Phpactor](https://github.com/phpactor/phpactor) repository.\n- Join the `#phpactor` channel on the Slack [Symfony Devs](https://symfony.com/slack-invite) channel.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpactor%2Fphpunit-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpactor%2Fphpunit-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpactor%2Fphpunit-extension/lists"}