php-testing

Installation
SKILL.md

PHP Testing with PHPUnit

Before writing code

Fetch live docs: Web-search site:docs.phpunit.de phpunit 10 (or current version) for the latest PHPUnit documentation. Check https://phpunit.de/ for current version.

PHPUnit Fundamentals

Test Class Structure

  • Test classes extend PHPUnit\Framework\TestCase
  • Test methods prefixed with test or annotated #[Test]
  • setUp() — runs before each test
  • tearDown() — runs after each test
  • setUpBeforeClass() / tearDownAfterClass() — per-class lifecycle

Assertions

Related skills
Installs
2
GitHub Stars
29
First Seen
Mar 31, 2026