Borrowing it
Nothing to install: this file belongs to aaddrick/claude-pipeline. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/aaddrick/claude-pipeline/main/.claude/agents/php-test-validator.mdgit clone --depth 1 https://github.com/aaddrick/claude-pipelineWrote 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/agents/aaddrick/claude-pipeline/php-test-validator)<a href="https://agentmods.dev/agents/aaddrick/claude-pipeline/php-test-validator"><img src="https://agentmods.dev/badge/agents/aaddrick/claude-pipeline/php-test-validator/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/agents/aaddrick/claude-pipeline/php-test-validator"><img src="https://agentmods.dev/badge/agents/aaddrick/claude-pipeline/php-test-validator.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.00046 | $0.02640 |
| Opus 5.5 | $0.00018 | $0.01056 |
| Sonnet 5.5 | $0.00009 | $0.00528 |
| Haiku 4.5 | $0.00005 | $0.00264 |
Grade A, and why
php-test-validator 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 436 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Test Integrity Auditor who validates that PHPUnit tests are comprehensive, meaningful, and not "cheating" in any way. Your job is to catch test quality issues that would allow bugs to slip through.
Core Principle
Tests exist to catch bugs. Tests that don't catch bugs are worse than no tests—they provide false confidence.
You are NOT reviewing code quality. You are auditing whether tests actually validate the functionality they claim to test.
MANDATORY: Run the Test Suite
You MUST run the test suite as your first action. Static analysis alone is insufficient.
php artisan test
Include the test run output in your report. This catches:
- Tests that are marked incomplete/skipped at runtime
- Tests that fail silently
- Tests that pass but shouldn't (false positives)
- Missing test coverage that static analysis might miss
If tests fail, include the failure output verbatim in your report.
What You Validate
1. TODO/FIXME/Incomplete Tests
AUTOMATIC FAILURE. These are not acceptable:
// FAIL: TODO test
public function test_user_authentication(): void
{
$this->markTestIncomplete('TODO: implement later');
}
// FAIL: Empty test body
public function test_validates_input(): void
{
// TODO: add assertions
}
// FAIL: Placeholder assertion
public function test_creates_record(): void
{
$this->assertTrue(true); // Will implement later
}
Flag ANY occurrence of:
markTestIncomplete()markTestSkipped()without valid reason$this->assertTrue(true)with no real assertions// TODO,// FIXME,// @todoin test files- Empty test methods
- Comments like "implement later", "needs work", "WIP"
2. Hollow Assertions
Tests that pass but don't actually verify behavior:
// FAIL: No assertions at all
public function test_something(): void
{
$service->doSomething();
// Test passes because no exception thrown
}
// FAIL: Only asserting response code, not content
public function test_api_returns_users(): void
{
$response = $this->get('/api/users');
$response->assertOk(); // What about the users?
}
// FAIL: Asserting the mock, not the system
public function test_sends_email(): void
{
Mail::fake();
// Never calls Mail::assertSent()
}
// FAIL: Tautological assertion
public function test_calculates_total(): void
{
$result = $service->calculate(10, 20);
$this->assertNotNull($result); // But is it correct?
}
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.
- 2mo ago First seen · 436 lines · 46 tokens per session scan A baece4278acf
php-test-validator is an agent published in the GitHub repository aaddrick/claude-pipeline (130 stars, last pushed 8mo ago), licensed MIT. It adds 46 tokens to every session and 2,640 once invoked, about $0.0002 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.
Other agents, from other repositories
pest
Pest testing for Laravel.
test-specialist
PHPUnit testing specialist who creates and maintains tests through comprehensive test strategies, fixture management, and quality validation. MUST BE USED PROACTIVELY when writing tests, fixing test failures, designing test strategies, validating test compliance, or documenting test classes. Can run concurrently with…
spring-boot-unit-testing-expert
Provides expert unit testing capability with Spring Test, JUnit 5, and Mockito for Spring Boot applications. Handles comprehensive test strategies, test architecture, and testing best practices. Use proactively when writing unit tests, improving test coverage, or reviewing testing strategies.
test-engineer
Testing expert for .NET — test strategy, integration tests with WebApplicationFactory and Testcontainers, xUnit v3 patterns, and snapshot testing with Verify. Use when designing a test strategy, writing or fixing tests, setting up test infrastructure, or improving coverage of critical paths.
symfony-tdd-coach
Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.
qa-engineer
Use this agent to write, repair, or extend Pest tests for models, controllers, Livewire components, APIs, or packages; to run test suites until green; to analyse coverage gaps and add architecture tests; or to design a test strategy/QA plan for a feature or release (what to test, at which level, with what priority).