Problem
php tests/step-execution-result-error-smoke.php fatals before assertions because StepExecutionResult now builds a StepResult, whose content hashing calls wp_json_encode(). The standalone smoke does not define that WordPress function.
Call to undefined function DataMachine\Core\wp_json_encode()
inc/Core/StepResult.php:126
Observed while running the required compatibility gates for #3386. The neighboring step execution contract smoke already provides the required bootstrap shape and passes.
Expected
Add the minimal faithful wp_json_encode() standalone stub before loading production classes, then confirm the existing error-classification assertions execute and pass. Do not change production behavior.
Constraints
- Test bootstrap only.
- No changelog or version edits.
- Conventional
test: commit.
- PR only; no release or deployment.
Problem
php tests/step-execution-result-error-smoke.phpfatals before assertions becauseStepExecutionResultnow builds aStepResult, whose content hashing callswp_json_encode(). The standalone smoke does not define that WordPress function.Observed while running the required compatibility gates for #3386. The neighboring step execution contract smoke already provides the required bootstrap shape and passes.
Expected
Add the minimal faithful
wp_json_encode()standalone stub before loading production classes, then confirm the existing error-classification assertions execute and pass. Do not change production behavior.Constraints
test:commit.