php-tester

Generate PHPUnit tests for Symfony projects with PHPStan level 9 compliance.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bpteam/coder --skill php-tester
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-tester
Source: https://github.com/bpteam/coder/tree/main/.opencode/skills/php-tester
Command: npx skills add https://github.com/bpteam/coder --skill php-tester

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PHP projects often struggle to maintain high-quality test coverage with strict typing and static analysis. This skill provides a framework to generate comprehensive PHPUnit tests for PHP 8.3+ applications using Symfony, enforcing PHPStan level 9 compliance and 80%+ coverage, while guiding best practices.

Core Features & Use Cases

  • Generates unit, integration, and feature tests with strict types and PSR-12 compliance.
  • Provides fixtures, mocks, and data providers to support robust test scenarios.
  • Integrates with PHPStan level 9 and PHPUnit configuration to ensure code quality and reliability.

Quick Start

Create a complete PHPUnit test scaffold for a Symfony project, including fixtures, mocks, and a PHPStan configuration.

Frequently Asked Questions about php-tester

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

FAQPage Schema
How do I generate PHPUnit tests for a Symfony project that pass PHPStan level 9?

You can generate PHPUnit tests for Symfony projects that enforce strict typing and PHPStan level 9 compliance. The skill outputs ready-to-run test files, fixtures, mocks, and configuration tailored for PHP 8.3+ applications.

What is the best way to set up unit and feature testing in a PHP 8.3 Symfony application?

The best way to set up unit and feature testing is by generating comprehensive PHPUnit tests with strict types and PSR-12 compliance. This approach provides necessary fixtures, mocks, and data providers to support robust test scenarios.

Can I use this approach to create integration tests with mocks and data providers in Symfony?

Yes, you can create integration tests using provided mocks and data providers. It supports unit, integration, and feature testing within Symfony-based codebases, ensuring strict typing and 80%+ coverage targets.

Does this testing framework support strict typing and PSR-12 code quality rules for PHP?

Yes, the framework supports strict typing and PSR-12 code quality rules. It integrates with PHPStan level 9 and PHPUnit configuration to ensure code quality, static analysis compliance, and reliability across the generated test suite.

Why do I need PHPStan level 9 compliance when writing PHPUnit tests for Symfony?

PHPStan level 9 compliance ensures strict typing and robust static analysis across your PHPUnit tests. Enforcing this level alongside an 80%+ coverage target maintains high code quality and prevents runtime type errors in PHP 8.3+ projects.

What coverage targets should I expect when scaffolding PHP tests for Symfony?

You should expect an 80%+ coverage target when scaffolding PHP tests. The generated PHPUnit test files, fixtures, and configuration enforce this coverage threshold while maintaining PHPStan level 9 static analysis compliance.