LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/LambdaTest/agent-skills --skill phpunit-skill
or paste the link and ask your coding assistant to install it
https://github.com/LambdaTest/agent-skills/tree/main/phpunit-skill
View on GitHub

What This Skill Does

Generates PHPUnit test cases for PHP projects. Covers assertions, data providers, mocking, and test doubles, plus lifecycle methods like setUp and tearDown. Also includes patterns for HTTP testing, database integration, and CI setup with GitHub Actions.

Gives Claude the full PHPUnit API surface and mocking patterns so it writes correct test code without you looking up assertion signatures or boilerplate.

When to use it

  • Writing test cases for PHP service classes with mocked dependencies
  • Setting up data providers to cover edge cases in calculation logic
  • Stubbing repository and email service calls in user registration tests
  • Running a filtered test suite using PHPUnit groups
  • Adding exception assertions for division-by-zero and invalid input paths