php-testing

Installation
SKILL.md

PHP Testing Skill

PHPUnit Basics

PHPUnit is the standard testing framework for PHP. Tests extend TestCase and use either the test method prefix or the @test annotation.

<?php

declare(strict_types=1);

namespace Tests\Unit;

use PHPUnit\Framework\TestCase;

class InvoiceTest extends TestCase
{
    // Option 1: test prefix (preferred — no annotation needed)
    public function testCalculatesTotalWithTax(): void
Related skills
Installs
4
GitHub Stars
366
First Seen
Mar 27, 2026