php-test-creator

Generate PHPUnit test scaffolding for GitHooks PHP project following v3 conventions.

9|Updated Apr 12, 2020
One-click install
npx skills add https://github.com/Wtyd/githooks --skill php-test-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-test-creator
Source: https://github.com/Wtyd/githooks/tree/main/.claude/skills/php-test-creator
Command: npx skills add https://github.com/Wtyd/githooks --skill php-test-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating PHPUnit tests for the GitHooks project can be time-consuming and error-prone; this skill automates and standardizes test generation to ensure consistent coverage.

Core Features & Use Cases

  • Generates unit tests for configuration, jobs, execution, and hooks following the repository's v3 testing patterns.
  • Provides guidance on test naming, structure, and data providers to improve maintainability and mutation testing readiness.
  • Use cases include when asked to create tests, add tests, verify a feature, or extend coverage for new features or bug fixes.

Quick Start

Ask to generate PHPUnit tests for the GitHooks project following its v3 testing conventions.

Frequently Asked Questions about php-test-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate PHPUnit tests for GitHooks PHP project components?

To generate PHPUnit tests for GitHooks, you request test creation for src/ directories like Configuration, Jobs, Execution, or Hooks. The skill outputs standardized v3 style unit test scaffolding following repository conventions.

What is the best way to add unit testing coverage for new GitHooks features?

The best way to add unit testing coverage is generating standardized PHPUnit scaffolding that applies v3 testing patterns, focusing on proper test naming, structure, and data providers for maintainability and mutation testing readiness.

Does the test generation skill support creating tests for GitHooks execution and jobs classes?

Yes, the test generation skill supports creating tests for GitHooks execution and jobs classes. It specifically targets src/Configuration/, src/Jobs/, src/Execution/, and src/Hooks/ directories to ensure comprehensive project coverage.

Can I use this skill to create PHPUnit scaffolding for bug fixes in the GitHooks project?

Yes, you can use this skill to create PHPUnit scaffolding for bug fixes. It applies whenever you request verifying functionality, extending coverage, or adding tests for new features within the GitHooks PHP project.

Why do my manually written PHPUnit tests fail mutation testing in the GitHooks repository?

Manually written PHPUnit tests often fail mutation testing due to inconsistent structure and naming. This skill solves that by automating test generation with guidance on data providers and v3 patterns to improve maintainability.

What are the limitations of using automated test generation for GitHooks unit testing?

The skill is limited to generating scaffolding for unit tests within the GitHooks project's src/ directories. It focuses on structure and conventions, meaning you still need to implement specific assertions and logic for complex execution paths.