·phpunit-best-practices
</>

phpunit-best-practices

PHPUnit 測試最佳實務和約定指南。在編寫、審查或重構 PHPUnit 測試時應使用此技能,以確保測試套件的一致性、可維護性和有效性。觸發涉及測試建立、測試重構、測試配置、程式碼覆蓋率、資料提供者、模擬或 PHPUnit XML 配置的任務。

10安裝·0熱度·@pentiminax

安裝

$npx skills add https://github.com/pentiminax/phpunit-best-practices --skill phpunit-best-practices

如何安裝 phpunit-best-practices

透過命令列快速安裝 phpunit-best-practices AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/pentiminax/phpunit-best-practices --skill phpunit-best-practices
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:pentiminax/phpunit-best-practices。

SKILL.md

查看原文

Comprehensive testing best practices guide for PHPUnit applications, maintained by pentiminax. Contains 40 rules across 8 categories, prioritized by impact to guide automated test generation, refactoring, and code review.

| 1 | Principles & Patterns | CRITICAL | principle- | | 2 | Coding Standards | CRITICAL | standard- | | 3 | Test Attributes | HIGH | attr- | | 4 | Data Management | HIGH | data- | | 5 | Test Documentation | MEDIUM | doc- | | 6 | Mocking | MEDIUM | mock- | | 7 | Integration Testing | MEDIUM | integration- | | 8 | Configuration | LOW-MEDIUM | config- |

Read individual rule files for detailed explanations and code examples:

PHPUnit 測試最佳實務和約定指南。在編寫、審查或重構 PHPUnit 測試時應使用此技能,以確保測試套件的一致性、可維護性和有效性。觸發涉及測試建立、測試重構、測試配置、程式碼覆蓋率、資料提供者、模擬或 PHPUnit XML 配置的任務。 來源:pentiminax/phpunit-best-practices。

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/pentiminax/phpunit-best-practices --skill phpunit-best-practices
分類
</>開發工具
認證
收錄時間
2026-03-10
更新時間
2026-03-11

Browse more skills from pentiminax/phpunit-best-practices

快速解答

什麼是 phpunit-best-practices?

PHPUnit 測試最佳實務和約定指南。在編寫、審查或重構 PHPUnit 測試時應使用此技能,以確保測試套件的一致性、可維護性和有效性。觸發涉及測試建立、測試重構、測試配置、程式碼覆蓋率、資料提供者、模擬或 PHPUnit XML 配置的任務。 來源:pentiminax/phpunit-best-practices。

如何安裝 phpunit-best-practices?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/pentiminax/phpunit-best-practices --skill phpunit-best-practices 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/pentiminax/phpunit-best-practices

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-03-10

相關 Skills

暫無