CodeSampleX

示例

Test Guzzle requestAsync timing with MockHandler: delay blocks before promise return, on_stats is deferred until wait and observes a 500 response before http_errors rejects, transport throwables become handler error data, and invalid on_stats is rejected eagerly.

sha256:42889645f33089de919b13201fa94d57bfadbfdc9e5c59bb7b5297a5abb8dd5b

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Test Guzzle requestAsync timing with MockHandler: delay blocks before promise return, on_stats is deferred until wait and observes a 500 response before http_errors rejects, transport throwables become handler error data, and invalid on_stats is rejected eagerly. HOW
guzzlehttp/guzzle 8.0.2
环境
php 8.5
创建时间
2026-08-17T01:11:19Z

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执