Skip to content
Back to skills

Dhpk Laravel Testbench Matrix

ASecurity

Orchestra Testbench matrix mechanics for Laravel packages spanning multiple majors. Use when: choosing Testbench pins, defining PHP × Laravel cells, building the shared TestCase, provisioning per-cell databases, running prefer-lowest, or validating package discovery. Not for: single-major packages, application test suites, Laravel package authoring outside the matrix, or semver decisions. Output: a per-cell CI matrix, TestCase design, and evidence-backed test gate.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsphpsqldatabase

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add hmj1026/dhpk --skill dhpk-laravel-testbench-matrix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dhpk Laravel Testbench Matrix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dhpk Laravel Testbench Matrix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hmj1026-dhpk-laravel-testbench-matrix-dhpk/badge)](https://www.skillsdirectory.com/skills/hmj1026-dhpk-laravel-testbench-matrix-dhpk)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dhpk-laravel-testbench-matrix
description: 'Orchestra Testbench matrix mechanics for Laravel packages spanning multiple majors. Use when: choosing Testbench pins, defining PHP × Laravel cells, building the shared TestCase, provisioning per-cell databases, running prefer-lowest, or validating package discovery. Not for: single-major packages, application test suites, Laravel package authoring outside the matrix, or semver decisions. Output: a per-cell CI matrix, TestCase design, and evidence-backed test gate.'
metadata:
  dhpk-invocation-class: implicit-eligible
---

# Orchestra Testbench matrix

Use this skill when a package supports more than one Laravel major. Testbench boots a
Laravel application inside the package suite, but each Testbench major is tied to one
Laravel major; each cell needs its own dependency graph.

## Working sequence

1. Load `references/testbench-recipes.md` and confirm the Laravel/Testbench mapping
   against the cell's package metadata.
2. Build one matrix cell per supported Laravel major and exclude PHP versions below
   each framework floor.
3. Pin Laravel and Testbench with `composer require --no-update`, resolve a fresh
   cell graph, and run the suite.
4. Add the lowest-floor cell and a real-consumer package-discovery job.

## Branches

- Mapping or Composer install → `testbench-recipes.md` §Mapping and per-cell install.
- Shared provider/facade setup → §Abstract TestCase.
- SQLite/MySQL choice → §Database choices.
- Floor or discovery validation → §Floor and discovery cells.
- Failure triage → §Failure map.

## When NOT to Use

- A package targets a single Laravel major and needs no matrix.
- An application test suite that boots the real application instead of Testbench.
- Service-provider, facade, publishing, or discovery design outside Testbench setup;
  use `dhpk-laravel-package-author`.
- Semver or dependency-floor decisions; use `dhpk-composer-package-hygiene`.

## Output

Return a CI matrix with one supported Laravel cell, correct Testbench pins and PHP
excludes, a shared provider/facade-aware TestCase, a deliberate database strategy, a
`--prefer-lowest --prefer-stable` cell, and a consumer discovery job.

## Verification

- [ ] Every Laravel major has the Testbench version confirmed from package metadata.
- [ ] `composer require --no-update` and `composer update` resolve each cell without
  lock-state leakage.
- [ ] PHP × Laravel exclusions match framework minimums.
- [ ] The base TestCase registers provider, facade, environment, and migrations.
- [ ] Laravel 6/7 compatibility for `defineDatabaseMigrations()` is handled.
- [ ] SQLite/MySQL coverage matches the package's query and migration needs.
- [ ] A lowest-floor cell and a fresh-consumer `package:discover` job pass.

## References

- `references/testbench-recipes.md` — mapping, CI, TestCase, database, floor, discovery,
  and failure recipes; load only the branch being used.
- `skills/dhpk-laravel-package-author/SKILL.md` — provider, facade, publishing, and package
  discovery design outside matrix mechanics.
- `skills/dhpk-composer-package-hygiene/SKILL.md` — dependency and constraint hygiene.

Files in this skill

  • SKILL.md3.1 KB
  • references/testbench-recipes.md3.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.