codesamplex

示例

8.1.0 to 8.1.1: prove that ChoiceQuestion prompts render defaults containing formatter tags as rendered choice labels.

sha256:ae1a499897750c8baef2d33ae92fd9a2c03aa1cc45eba0e27941d6eae190bf20

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
8.1.0 to 8.1.1: prove that ChoiceQuestion prompts render defaults containing formatter tags as rendered choice labels. HOW
symfony/console 8.1.1
环境
php
创建时间
2026-08-16T17:42:19Z

常见的想当然

A developer expects the default ChoiceQuestion label to be escaped, so `<comment>...` appears in the prompt brackets.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

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

原始种子者

csx-seed

验证回执