aibdd.auto.php.it.handlers.query

Implement read query patterns for AIBDD PHP test When steps.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

本技能提供 When 步驟中讀取操作(Query)的參考實作與標準化流程,便於測試流程中統一定義查詢行為與結果存取。

Core Features & Use Cases

  • 支援 get、list、find、search 等常見查詢模式。
  • 與 Then 步驟配合,透過 queryResult 與 lastError 傳遞結果與錯誤。
  • 可在測試框架中作為參考實作被 /aibdd.auto.php.it.red 載入。

Quick Start

使用此處理器作為 When 步驟的查詢操作參考,並在測試設定時載入。

Frequently Asked Questions about aibdd.auto.php.it.handlers.query

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

FAQPage Schema
How do I handle read queries in PHP BDD When steps?

Read queries in PHP BDD When steps are handled using a reference implementation for get, list, find, and search patterns. It enforces safe, read-only interactions and exposes results via queryResult and lastError for subsequent validation.

What is the standard way to pass query results to Then steps in PHP tests?

Query results are passed to Then steps via queryResult and lastError properties. This standardized output mechanism allows Then steps to validate both the returned data and any errors encountered during the read operation.

How do I set up read-only query handlers for PHP integration tests?

Read-only query handlers are set up by loading this reference implementation during test initialization via the aibdd.auto.php.it.red harness. It provides predefined handlers for common read operations without requiring manual configuration.

Does the PHP query handler support search and find operations?

Yes, the PHP query handler supports search and find operations along with get and list patterns. These common query operations are covered as part of the reference implementation for test service interactions.

Can I use this query handler for write operations in PHP tests?

No, this query handler enforces safe, read-only interactions specifically for When steps. It is designed exclusively for read operations and exposes results for validation rather than modifying test data.