{"id":20463576,"url":"https://github.com/myxiaoao/hyperf-pest","last_synced_at":"2025-03-05T11:52:13.767Z","repository":{"id":45777246,"uuid":"514513921","full_name":"myxiaoao/hyperf-pest","owner":"myxiaoao","description":"Pest Testing for Hyperf","archived":false,"fork":false,"pushed_at":"2023-07-20T00:43:05.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-19T21:15:00.839Z","etag":null,"topics":["hyperf","pest","testing"],"latest_commit_sha":null,"homepage":"","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/myxiaoao.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-16T07:49:17.000Z","updated_at":"2023-12-01T05:56:53.000Z","dependencies_parsed_at":"2024-11-15T13:12:08.161Z","dependency_job_id":null,"html_url":"https://github.com/myxiaoao/hyperf-pest","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"1fae3f2e19b626ca42e0e52bbc70623988ad8f76"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myxiaoao%2Fhyperf-pest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myxiaoao%2Fhyperf-pest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myxiaoao%2Fhyperf-pest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myxiaoao%2Fhyperf-pest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myxiaoao","download_url":"https://codeload.github.com/myxiaoao/hyperf-pest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242023193,"owners_count":20059297,"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":["hyperf","pest","testing"],"created_at":"2024-11-15T13:12:03.643Z","updated_at":"2025-03-05T11:52:13.736Z","avatar_url":"https://github.com/myxiaoao.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pest Testing for Hyperf\n\u003ca href=\"https://github.com/myxiaoao/hyperf-pest/actions?query=workflow%3APHPUnit\"\u003e\n    \u003cimg src=\"https://github.com/myxiaoao/hyperf-pest/workflows/PHPUnit/badge.svg\" alt=\"Tests\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/cooper/hyperf-pest\"\u003e\n    \u003cimg src=\"https://poser.pugx.org/cooper/hyperf-pest/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/cooper/hyperf-pest\"\u003e\n    \u003cimg src=\"https://poser.pugx.org/cooper/hyperf-pest/d/total.svg\" alt=\"Total Downloads\"\u003e\n\u003c/a\u003e\n\n[Pest](https://pestphp.com/) 是一个注重简单性的优雅 PHP 测试框架.\n\n### 1.安装 Hyperf-skeleton (已有 Hyperf 项目请忽略)\n\nhttps://github.com/hyperf/hyperf-skeleton\n\n```php\ncomposer create-project hyperf/hyperf-skeleton\n```\n\n### 2.使用 Composer 安装\n\n```php\ncomposer require cooper/hyperf-pest\n```\n\n执行\n```php\nphp bin/hyperf.php vendor:publish cooper/hyperf-pest\n```\n\n### 3.测试命令\n\n```php\n./vendor/bin/co-pest --prepend test/bootstrap.php -c phpunit.xml\n```\n\n#### 提示\n* 在 `composer.json` 中 `scripts` 添加命令快捷方式：`\"pest\": \"co-pest --prepend test/bootstrap.php -c phpunit.xml --colors=always\"`；\n* 语法请看[官方文档](https://pestphp.com/docs/writing-tests)；\n* 按照 `phpunit` 写测试也是可以的。\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyxiaoao%2Fhyperf-pest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyxiaoao%2Fhyperf-pest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyxiaoao%2Fhyperf-pest/lists"}