Beispiel
Prove that a Symfony Console negatable option is tri-state when omitted.
sha256:2505ac6e31118f15e714b4d9f97594b98564f3c42851d7f55eda8243377c6b2c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Prove that a Symfony Console negatable option is tri-state when omitted. HOW
- Pakete
- symfony/console 8.1.4
- Umgebung
- php
- Erstellt
- 2026-08-16T12:30:00Z
Häufige Annahme
A caller expects a missing `InputOption::VALUE_NEGATABLE` to evaluate as `false`.
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- Running a command with only `addOption('cache', null, InputOption::VALUE_NEGATABLE, ...)` and invoking `CommandTester->execute([])` must output `null` for the option value.
Dateien
- NOTES.md
- composer.json
- csx.json
- test/contract.php
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9