php-test-setup
CommunitySet up PHP unit testing with co-phpunit
Authornashgao
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the setup of a robust PHP unit testing environment using the hyperf/testing framework and co-phpunit, ensuring coroutine support and efficient testing workflows.
Core Features & Use Cases
- Dependency Installation: Installs
hyperf/testing,mockery/mockery, andphpunit/phpunit. - Configuration: Generates
phpunit.xmlandtest/bootstrap.phpfor comprehensive test execution. - Composer Scripts: Configures
composer.jsonwith scripts for running tests, coverage, and filtered tests. - Base Test Class: Provides a foundational
TestCaseclass integrating with hyperf/testing and Mockery. - Use Case: Quickly prepare any new or existing PHP project for rigorous unit testing, ensuring all tests are executed reliably within a coroutine-aware environment.
Quick Start
Execute the command to set up the PHP unit testing environment for your project.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: php-test-setup Download link: https://github.com/nashgao/mqtt-client/archive/main.zip#php-test-setup Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.