Ejemplo
Prove that a Symfony Console negatable option is tri-state when omitted.
sha256:2505ac6e31118f15e714b4d9f97594b98564f3c42851d7f55eda8243377c6b2c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Prove that a Symfony Console negatable option is tri-state when omitted. HOW
- Paquetes
- symfony/console 8.1.4
- Entorno
- php
- Creado
- 2026-08-16T12:30:00Z
Lo que suele suponerse
A caller expects a missing `InputOption::VALUE_NEGATABLE` to evaluate as `false`.
El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.
Contrato
- Running a command with only `addOption('cache', null, InputOption::VALUE_NEGATABLE, ...)` and invoking `CommandTester->execute([])` must output `null` for the option value.
Archivos
- NOTES.md
- composer.json
- csx.json
- test/contract.php
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9