diff --git a/CLAUDE.md b/CLAUDE.md index 046ee28..4c892cb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -16,6 +16,106 @@ curl "http://localhost:8080/graph.svg?theme=dark" -o graph.svg curl "http://localhost:8080/health" ``` +### Testing conventions (apply to every test file) + +- `declare(strict_types=1)` at the top of every test file +- Test classes are `final` and extend `TestCase` +- Methods: `#[Test]` attribute + `it_` prefix + `snake_case` — e.g. `it_returns_empty_when_no_contributions` +- Structure: Arrange → Act → Assert, separated by blank lines; one assertion per test when possible +- Use `$this->assert*()` not `self::assert*()` + +```php +render([], 'light'); + + $this->assertStringContainsString('&1 | tail -20" + } + ] + } +} +``` + ## Docker ```bash