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.
npx skills add xobotyi/cc-foundry --skill phpunitgit clone --depth 1 https://github.com/xobotyi/cc-foundryWrote 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.
[](https://agentmods.dev/skills/xobotyi/cc-foundry/phpunit)<a href="https://agentmods.dev/skills/xobotyi/cc-foundry/phpunit"><img src="https://agentmods.dev/badge/skills/xobotyi/cc-foundry/phpunit/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.
<a href="https://agentmods.dev/skills/xobotyi/cc-foundry/phpunit"><img src="https://agentmods.dev/badge/skills/xobotyi/cc-foundry/phpunit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.04078 |
| Opus 5.5 | $0.00016 | $0.01631 |
| Sonnet 5.5 | $0.00008 | $0.00816 |
| Haiku 4.5 | $0.00004 | $0.00408 |
Grade B, and why
phpunit scanned grade B with 1 finding 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.
Strips warnings and disclaimersmediumAnti-refusal
Omitting safety caveats hides risk from the user and is a common jailbreak preamble.
When **reviewing** tests: cite the specific issue and show the fix inline. Don't lecture — state what's wrong and how to How it starts
The opening of the file, as written. The whole thing — 472 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PHPUnit
Test behavior, not implementation. Tests are executable documentation — if the test name doesn't explain what the code does, rewrite it.
PHPUnit is PHP's standard testing framework. It uses test case classes extending TestCase, setUp()/tearDown() for
fixtures, and a full assertion API. All patterns target PHPUnit 11+ on PHP 8.5+. Use PHP 8 attributes exclusively —
annotations are deprecated in 11, removed in 12.
References
- Assertion catalog, constraints, exception expectations → [
${CLAUDE_SKILL_DIR}/references/assertions.md] — Full assertion API grouped by category, constraint system, custom assertions - Test doubles — stubs, mocks, MockBuilder → [
${CLAUDE_SKILL_DIR}/references/mocking.md] — createStub vs createMock, return config, invocation matchers, argument constraints, MockBuilder - Data providers — static, named, generators → [
${CLAUDE_SKILL_DIR}/references/data-providers.md] — #[DataProvider], #[TestWith], named datasets, generator providers, external providers - phpunit.xml structure, test suites, source config → [
${CLAUDE_SKILL_DIR}/references/configuration.md] — XML elements, strict settings, source element, coverage reports, execution order
Test Structure
Discovery and Naming
- Files:
*Test.phpin configured test directories. Mirror source structure:src/Service/PaymentService.php→tests/Unit/Service/PaymentServiceTest.php. - Classes:
final class PaymentServiceTest extends TestCase. Alwaysfinal. - Methods:
testprefix or#[Test]attribute. Describe the behavior:testReturnsEmptyCollectionWhenNoResultsnottestSearch. - One test class per production class. Split into Unit/Integration directories.
Arrange-Act-Assert
Structure every test in three phases:
public function testUserCreationSetsDefaults(): void
{
// Arrange
$data = ['name' => 'Alice', 'email' => '[email protected]'];
// Act
$user = User::fromArray($data);
// Assert
$this->assertSame('Alice', $user->getName());
$this->assertTrue($user->isActive());
$this->assertSame([], $user->getRoles());
}
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 26d ago Changed · -1 lines 84dea4a7d1bb
- 1mo ago Changed 2d50196976ef
- 3mo ago First seen · 473 lines · 40 tokens per session scan B 6db75bba7158
phpunit is a skill published in the GitHub repository xobotyi/cc-foundry (23 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 4,078 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
phpunit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| phpunitxobotyi/cc-foundry | Skill | 23 | yesterday | MIT | B | 40 | Claude Code |
| dotnet-testNikiforovAll/claude-code-rules | Skill | 144 | 1mo ago | Apache-2.0 | A | 35 | Claude Code |
| write-testsgreglas75/zuvo | Skill | 8 | today | MIT | A | 87 | Claude Code |
| testing-dotnetzdanovichnick/dotnet-pilot | Skill | 5 | 3d ago | MIT | A | 31 | Claude Code |
| peekaboojohnkozaris/jko-claude-plugins | Skill | 11 | 29d ago | MIT | A | 104 | Claude Code |
| mobile-flows-maestrojohnkozaris/jko-claude-plugins | Skill | 11 | 29d ago | MIT | A | 102 | Claude Code |
| validate-mobilejohnkozaris/jko-claude-plugins | Skill | 11 | 29d ago | MIT | A | 20 | Claude Code |