test structure

Generate framework-aware PHP test directory structures and tool configurations.

3|1|Updated Apr 18, 2021
One-click install
npx skills add https://github.com/nashgao/mqtt-client --skill test-structure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test structure
Source: https://github.com/nashgao/mqtt-client/tree/main/.claude/skills/test/structure
Command: npx skills add https://github.com/nashgao/mqtt-client --skill test-structure

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of comprehensive and framework-specific test directory structures for PHP projects, ensuring a well-organized and efficient testing environment.

Core Features & Use Cases

  • Automated Framework Detection: Intelligently identifies PHP frameworks (Laravel, Symfony, Pure PHP) to apply tailored test structures.
  • Comprehensive Hierarchy Generation: Creates detailed directories for Unit, Integration, Functional, and Performance tests.
  • Tool Configuration: Sets up essential development tools like PHPStan, PHP_CodeSniffer, and Infection.
  • Use Case: When starting a new PHP project or refactoring an existing one, use this Skill to instantly set up a standardized and optimized testing foundation, saving significant manual configuration time.

Quick Start

Use the test structure skill to generate a comprehensive PHP test structure for the current project.

Frequently Asked Questions about test structure

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

FAQPage Schema
How do I generate a PHP test structure for my project?

This Skill generates a complete PHP test structure by creating detailed directory hierarchies for Unit, Integration, and Functional tests, alongside essential tool configurations and support files.

Does this automated test setup work with Laravel and Symfony?

Yes, the automated test setup works with Laravel and Symfony by intelligently detecting the specific PHP framework to apply a tailored and optimized testing environment structure.

What's the best way to configure PHPStan and PHP_CodeSniffer for a new project?

The best way to configure PHPStan and PHP_CodeSniffer is using this Skill, which automatically sets up these essential development tools alongside your generated PHP testing directories.

Can I include performance tests when setting up a PHP testing environment?

Yes, you can include performance tests because the comprehensive hierarchy generation explicitly creates dedicated directories for Unit, Integration, Functional, and Performance tests.

Do I need a specific PHP framework to create directory hierarchies and support files?

No, you do not need a specific PHP framework; the structure generation supports tailored test environments for Laravel, Symfony, and pure PHP projects without requiring additional dependencies.