wpstarter/o-testbench
WpStarter port of Orchestra Testbench, providing a Laravel-style testing harness for package development so you can write integration tests for your WpStarter packages without booting a full application.
Architecture Fit
Purpose Alignment:
Key Use Cases:
Technical Risks:
Key Questions
laravel/testbench, or must it replace Testbench entirely?laravel/testbench and related packages to prevent unsafe dependency resolution?Stack Fit
| Component | v1.0 Assessment Assumption | v2.0 Status |
|---|---|---|
| PHP | 7.4–8.1 likely | TBD — must verify in changelog |
| Laravel | 8.x–9.x assumed | TBD — major-version change may shift support |
| WordPress | 5.x–6.x assumed | TBD — verify minimum and tested versions |
| WpStarter | v2.x+ hypothetical | TBD — likely critical dependency |
| Laravel Testbench | Drop-in replacement | TBD — verify API compatibility and conflict rules |
| Composer | Standard | Verify new conflict/require constraints |
Migration Path
v1.0...v2.0 diff before planning upgrade.composer why laravel/testbench, composer why wpstarter/o-testbench, and composer update --dry-run to expose conflicts.^1.0 until v2.0 migration tests pass.^2.0 only after compatibility validation.TestCase imports only if v2.0 changes namespace or bootstrap behavior.WP_Query, WP_User, WP_Post, WP_Mock, and Laravel service container bindings.Sequencing
Compatibility Pitfalls
Auth, DB, and facades may still conflict with WordPress globals and $wpdb.Mockery and WP_Mock integration may behave differently in v2.0.Maintenance
^1.0 or ^2.0 explicitly; avoid floating constraints during migration.Support
Scaling
Failure Modes
| Risk | Mitigation Strategy |
|---|---|
| v2.0 breaking changes undocumented in release notes | Review changelog diff; require a migration spike before adoption. |
| Composer dependency conflicts | Pin versions; run dry-run updates; add conflict checks in CI. |
| v1.0 test suites fail after upgrade | Keep v1.0 branch; migrate one suite at a time with rollback path. |
| Package abandonment recurs | Fork under MIT; maintain internal patches; monitor commit activity. |
| WP-specific tests become flaky | Add retries for non-deterministic tests; isolate WordPress services in Docker. |
| CI/CD pipeline breaks on v2.0 | Add separate v2.0 validation job before replacing existing pipeline. |
How can I help you explore Laravel packages today?