phpunit-test
OfficialGuided PHPUnit test scaffolding and validation.
Authormyadmin-plugins
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Creates or extends PHPUnit 9 tests in tests/ following project patterns: ReflectionClass for structure tests, stub functions from tests/bootstrap.php, and requiring the namespace Detain\MyAdminOpenSRS\Tests. Use when user says 'add test', 'write tests', 'test coverage'. Do NOT use for non-test PHP files.
Core Features & Use Cases
- Creates or extends PHPUnit 9 tests under tests/ that validate project structure via ReflectionClass.
- Uses pre-defined stubs from tests/bootstrap.php to avoid real API calls and ensure isolated unit testing.
- Enforces the namespace Detain\MyAdminOpenSRS\Tests for all test classes and provides scaffolding aligned with the plugin's testing conventions.
Quick Start
Ask me to add or extend tests and I will create PHPUnit tests under tests/ following the project's patterns.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: phpunit-test Download link: https://github.com/myadmin-plugins/opensrs-domains/archive/main.zip#phpunit-test 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 471,000+ vetted skills library on demand.