php-testing
БесплатноБез исполняемых скриптовНе проверенWrite unit and integration tests for PHP applications with PHPUnit and Pest. Use when writing PHPUnit unit tests or integration tests for PHP applications.
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
PHP Testing
Priority: P1 (HIGH)
Universal anti-slop rules (identity fixtures, tautologies, skip/focus, mock echoing, bug-first lock, sleeps, shallow assertions, coverage): anti-slop-rules.md. Only PHP deltas follow.
Stack Deltas
- PHPUnit / Pest: extend
TestCase; organize intoUnit/,Integration/,Feature/; Pest usesit()andexpect(). - Strict assertions:
assertSame(===) overassertEqualsto avoid type coercion; alsoassertCount()andassertMatchesRegularExpression(). - Data providers (
[BE-TEST-01]):#[DataProvider('statusProvider')](PHPUnit 10+) ordataset(Pest); providers are static methods returning test-case arrays; equivalent inputs only, distinct scenarios may stay separate. - Mocking (
[BE-TEST-04]):createMock()for boundaries; tests independent and repeatable; DB tests use transactions orSQLite :memory:. - Coverage: diagnostic and project-configured; verify risk-weighted critical paths.
Anti-Patterns
- No private-method tests: test through the public interface only.
- No over-mocking: mock external boundaries, not internals.
- No real network or DB in unit tests: use in-memory databases or mocks.
- No coverage chasing: prioritize meaningful assertions over an arbitrary percentage.
References
Установить php-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл php-testing?
Write unit and integration tests for PHP applications with PHPUnit and Pest. Use when writing PHPUnit unit tests or integration tests for PHP applications.
Как установить скилл php-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл php-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic