[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EBPY8D185A96WRVM258CBW":3,"skill-same:01M6EBPY8D185A96WRVM258CBW":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6EBPY8D185A96WRVM258CBW","php-testing",null,"Unit and integration testing standards for PHP applications. Use when writing PHPUnit unit tests or integration tests for PHP applications. (triggers: tests\u002F**\u002F*.php, phpunit.xml, phpunit, pest, mock, assert, tdd)","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fphp-testing\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"php testing","php","testing","use","unit","mock","testing standards","integration testing","triggers","tests","standards","applications","integration","xml","unit tests","integration tests","tdd","writing","2026-11-10 10:12:30",false,"---\nname: php-testing\ndescription: 'Unit and integration testing standards for PHP applications. Use when writing PHPUnit unit tests or integration tests for PHP applications. (triggers: tests\u002F**\u002F*.php, phpunit.xml, phpunit, pest, mock, assert, tdd)'\n---\n\n# PHP Testing\n\n## **Priority: P1 (HIGH)**\n\n## Structure\n\n```text\ntests\u002F\n├── Unit\u002F\n├── Integration\u002F\n└── Feature\u002F\n```\n\n## Implementation Guidelines\n\n- **Standards**: Use **`PHPUnit`** (9\u002F10+) or **`Pest`**. Organize into **`Unit\u002F`**, **`Integration\u002F`**, and **`Feature\u002F`**. Class names should extend **`TestCase`** (e.g., **`class OrderServiceTest extends TestCase`**).\n- **TDD Workflow**: Follow **Red-Green-Refactor**. **Red: write failing test** first for `createOrder()`, then **Green: implement minimal** logic to pass, then **Refactor**.\n- **Mocking**: Use **`createMock(PaymentService::class)`** for dependencies. Define behavior with **`expects($this->once())`** and **`method('charge')`** with `with(100)->willReturn(true)`. DO NOT mock simple Data Objects.\n- **Fluent Assertions**: **`assertSame checks type + value`** (`===`) — use **`assertSame('Test', $result->title)`** over `assertEquals` to avoid type coercion surprises. Also use **`assertCount()`** and **`assertMatchesRegularExpression()`**.\n- **Data Providers**: Use **`#[DataProvider('statusProvider')]`** (PHPUnit 10+) with a **`public static function statusProvider(): array`** or **`dataset`** (Pest).\n- **Isolation**: Ensure tests are **Independent** and **Repeatable**. DB tests must use **`Transactions`** or **`SQLite :memory:`**.\n- **Pest syntax**: Use **`it('creates an order', function() { ... })`** and **`expect($result->title)->toBe('Test')`** for cleaner, more readable tests.\n- **Coverage**: Aim for **`80%+`** line coverage. Use **`phpunit.xml`** to whitelist specific directories.\n- **Automation**: Run tests on every PR using **GitHub Actions** or **GitLab CI**.\n\n## Anti-Patterns\n\n- **No testing private methods**: Test through public interfaces only.\n- **No over-mocking internals**: Mock only external boundaries.\n- **No real network\u002FDB in unit tests**: Use in-memory databases or mocks.\n- **No coverage-metric chasing**: Prioritize meaningful assertions.\n\n## References\n\n- [Testing Patterns & Mocks](references\u002Fimplementation.md)\n\n","# PHP Testing\n\n## **Priority: P1 (HIGH)**\n\n## Structure\n\n```text\ntests\u002F\n├── Unit\u002F\n├── Integration\u002F\n└── Feature\u002F\n```\n\n## Implementation Guidelines\n\n- **Standards**: Use **`PHPUnit`** (9\u002F10+) or **`Pest`**. Organize into **`Unit\u002F`**, **`Integration\u002F`**, and **`Feature\u002F`**. Class names should extend **`TestCase`** (e.g., **`class OrderServiceTest extends TestCase`**).\n- **TDD Workflow**: Follow **Red-Green-Refactor**. **Red: write failing test** first for `createOrder()`, then **Green: implement minimal** logic to pass, then **Refactor**.\n- **Mocking**: Use **`createMock(PaymentService::class)`** for dependencies. Define behavior with **`expects($this->once())`** and **`method('charge')`** with `with(100)->willReturn(true)`. DO NOT mock simple Data Objects.\n- **Fluent Assertions**: **`assertSame checks type + value`** (`===`) — use **`assertSame('Test', $result->title)`** over `assertEquals` to avoid type coercion surprises. Also use **`assertCount()`** and **`assertMatchesRegularExpression()`**.\n- **Data Providers**: Use **`#[DataProvider('statusProvider')]`** (PHPUnit 10+) with a **`public static function statusProvider(): array`** or **`dataset`** (Pest).\n- **Isolation**: Ensure tests are **Independent** and **Repeatable**. DB tests must use **`Transactions`** or **`SQLite :memory:`**.\n- **Pest syntax**: Use **`it('creates an order', function() { ... })`** and **`expect($result->title)->toBe('Test')`** for cleaner, more readable tests.\n- **Coverage**: Aim for **`80%+`** line coverage. Use **`phpunit.xml`** to whitelist specific directories.\n- **Automation**: Run tests on every PR using **GitHub Actions** or **GitLab CI**.\n\n## Anti-Patterns\n\n- **No testing private methods**: Test through public interfaces only.\n- **No over-mocking internals**: Mock only external boundaries.\n- **No real network\u002FDB in unit tests**: Use in-memory databases or mocks.\n- **No coverage-metric chasing**: Prioritize meaningful assertions.\n\n## References\n\n- [Testing Patterns & Mocks](references\u002Fimplementation.md)\n\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fphp-testing",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill php-testing",{"tool":57,"command":58},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill php-testing",{"tool":60,"command":61},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill php-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FHoangNguyen0403\u002Fagent-skills-standard\u002Fphp-testing\u002FSKILL.md",true,[65,71,75,79],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002FCOPILOT-STUDIO-RATES.md","REFERENCE","参考文档",5795,"https:\u002F\u002Fgithub.com\u002FThamielis\u002F.agents\u002Fblob\u002Fmain\u002Fplugins\u002Fazure-cloud-development\u002Fskills\u002Fazure-pricing\u002Freferences\u002FCOPILOT-STUDIO-RATES.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002FCOST-ESTIMATOR.md",3585,"https:\u002F\u002Fgithub.com\u002FThamielis\u002F.agents\u002Fblob\u002Fmain\u002Fplugins\u002Fazure-cloud-development\u002Fskills\u002Fazure-pricing\u002Freferences\u002FCOST-ESTIMATOR.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002FREGIONS.md",2730,"https:\u002F\u002Fgithub.com\u002FThamielis\u002F.agents\u002Fblob\u002Fmain\u002Fplugins\u002Fazure-cloud-development\u002Fskills\u002Fazure-pricing\u002Freferences\u002FREGIONS.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002FSERVICE-NAMES.md",3805,"https:\u002F\u002Fgithub.com\u002FThamielis\u002F.agents\u002Fblob\u002Fmain\u002Fplugins\u002Fazure-cloud-development\u002Fskills\u002Fazure-pricing\u002Freferences\u002FSERVICE-NAMES.md",[84,93,102,111,117,123],{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":37},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[90,91,92],"model","model hierarchy","model hierarchy skill",{"skillNo":94,"name":95,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":37},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[99,100,101],"MCP","zoom","zoom mcp",{"skillNo":103,"name":104,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":37},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[108,109,110,100],"sdk","zoom apps sdk","apps",{"skillNo":112,"name":113,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":37},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[113],{"skillNo":118,"name":119,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":37},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[119],{"skillNo":124,"name":125,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":37},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[125]]