aibdd.auto.php.it.green

Drive WordPress PHP integration tests from failing to green code.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zenbuapps/zenbu-powers --skill aibdd-auto-php-it-green
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: aibdd.auto.php.it.green
Source: https://github.com/zenbuapps/zenbu-powers/tree/main/skills/aibdd.auto.php.it.green
Command: npx skills add https://github.com/zenbuapps/zenbu-powers --skill aibdd-auto-php-it-green

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill accelerates end-to-end WordPress PHP integration testing by driving the Green Phase from failing tests to green code implementations, ensuring the repository, service, and custom exceptions work in harmony with a real WP DB.

Core Features & Use Cases

  • Incremental, minimal changes: fix one failing test at a time and re-run integration tests until all pass.
  • WP DB integration: uses real WordPress APIs and the database through wp-env, not in-memory mocks.
  • Clear separation: enforces Repository for data access and Service for business rules with dedicated exceptions.

Quick Start

Run vendor/bin/phpunit --testsuite integration and fix failing tests one by one until all tests pass.

Frequently Asked Questions about aibdd.auto.php.it.green

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix failing WordPress PHP integration tests using TDD green phase?▼

Fix failing WordPress PHP integration tests by applying incremental, minimal code changes to repository methods or service logic, re-running the integration test suite one failure at a time until all tests pass.

What's the best way to test WordPress repository and service layers with a real database?▼

Test WordPress repository and service layers with a real database by using wp-env to drive integration tests, enforcing strict separation between repository data access and service business rules with dedicated exceptions.

Does WordPress integration testing with wp-env require using $wpdb prepare statements?▼

WordPress integration testing with wp-env requires strict use of $wpdb with prepare() for real WP database interaction, ensuring repository data access satisfies integration tests without in-memory mocks.

How do I run PHP integration tests for WordPress plugins step by step?▼

Run PHP integration tests for WordPress plugins by executing vendor/bin/phpunit --testsuite integration, then fixing failing tests incrementally until repository and service implementations satisfy all test requirements.

Why does my WordPress TDD workflow use a real WP DB instead of mocks for integration testing?▼

WordPress TDD workflows use a real WP DB instead of mocks to validate actual WP API interactions through wp-env, ensuring repository data access and service business rules work harmoniously with the database.

Can I use this approach for WordPress plugins that need custom exceptions in service logic?▼

Yes, this approach supports WordPress plugins needing custom exceptions by enforcing clear separation between repository data access and service business rules, with dedicated exceptions implemented incrementally to satisfy integration tests.