phpunit-testing

phpunit-testing is a skill for Claude Code, Codex from wprig/wprig. It costs 20 tokens per session (629 once invoked), scanned A, original, GPL-3.0.

A guide to PHPUnit, a PHP testing tool, for checking WordPress theme components with unit tests and integration tests.

In plain words
What is it for?
Writing and running tests that check individual WP Rig theme parts and how those parts work together.
Why use it?
It helps developers verify theme code automatically instead of relying only on manual checks.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Writing and running tests that check individual WP Rig theme parts and how those parts work together.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wprig/wprig/phpunit-testing
About the project

WP Rig is a starter toolkit for developing WordPress themes with built-in practices for accessibility, mobile-first layouts, progressive enhancement, resilient design, and performance. WordPress theme developers use it as a foundation for parent or child themes.

wprig/wprig · 1,333 stars · on GitHub · wprig.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wprig/wprig --skill phpunit-testing
Clone the repo
git clone --depth 1 https://github.com/wprig/wprig

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for phpunit-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/wprig/wprig/phpunit-testing/github.svg)](https://agentmods.dev/skills/wprig/wprig/phpunit-testing)
Your own site
<a href="https://agentmods.dev/skills/wprig/wprig/phpunit-testing"><img src="https://agentmods.dev/badge/skills/wprig/wprig/phpunit-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for phpunit-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/wprig/wprig/phpunit-testing"><img src="https://agentmods.dev/badge/skills/wprig/wprig/phpunit-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 629 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00629
Opus 5.5 $0.00008 $0.00252
Sonnet 5.5 $0.00004 $0.00126
Haiku 4.5 $0.00002 $0.00063

Measured 26d ago against content hash 4c55d3f44136, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

phpunit-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.ai/skills/phpunit-testing/SKILL.md · 82 lines

The source is not reproduced here

Licensed GPL-3.0

The repository is licensed GPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago Changed · +2 lines · +4 tokens per session 4c55d3f44136
  2. 2mo ago First seen · 80 lines · 16 tokens per session scan A 9b7d4d7e94e3

Subscribe to this mod's changes

phpunit-testing is a skill published in the GitHub repository wprig/wprig (1,333 stars, last pushed 26d ago), licensed GPL-3.0. It adds 20 tokens to every session and 629 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

Codeception Testing

Expert-level Codeception testing skill for PHP applications. Covers acceptance, functional, and unit testing with the Actor pattern, BDD-style syntax, Page Objects, API testing, and database helpers.

PramodDutta/qaskills · 42 tokens

JMeter Load Testing

Load and performance testing skill using Apache JMeter, covering test plans, thread groups, assertions, listeners, timers, and distributed testing.

PramodDutta/qaskills · 32 tokens

craft-pest

Testing Craft CMS 5 plugins and modules with Pest — test isolation, database safety, and the markhuot/craft-pest-core harness. ALWAYS load when writing, running, fixing, or reviewing tests for a Craft plugin or module, and whenever a suite touches a real Craft install. Covers why rollback is opt-in, tests/Pest.php +…

michtio/craftcms-claude-skills · 175 tokens

phpunit-unit-test-reviewing

Internal sub-skill. Do not auto-activate. Use only when explicitly invoked by name by another skill or agent.

shopwareLabs/ai-coding-tools · 31 tokens

phpunit-unit-test-writing

Use this skill when the user asks to write, generate, create, or add PHPUnit unit tests for a Shopware 6 source class — phrases like "write unit tests for X", "generate tests for ClassName", "create PHPUnit tests", "add test coverage", "test this class", "cover this with tests", "I need tests for", "unit test this"…

shopwareLabs/ai-coding-tools · 187 tokens

wp-phpunit-writing-tests

Write PHPUnit tests for a WordPress plugin or theme. Covers the integration base class WPUnitTestCase and its snakecase setup() / teardown() fixtures (and why WordPress uses them via phpunit-polyfills), verified cleanup boundaries (without promising universal transaction rollback), the factory system (post creation…

Lonsdale201/wp-agent-skills · 205 tokens