phpunit

Installation
SKILL.md

PHPUnit

PHPUnit is the standard unit testing framework for the PHP ecosystem. Examples include usage in Laravel, Symfony, and WordPress.

When to Use

  • PHP Standard Testing Framework: The official, universal testing framework for Laravel, Symfony, and modern PHP applications.
  • Unit and Integration Testing: Testing PHP domain models, services, controllers, and database interactions.
  • Data Providers for Parameterized Tests: Running tests against multi-dimensional test datasets using @dataProvider.
  • Mocking & Test Doubles: Generating mock objects and verifying invocation expectations natively without external libraries.

Quick Start

<?php
use PHPUnit\Framework\TestCase;
Installs
7
GitHub Stars
15
First Seen
Feb 10, 2026