Exemple
Show that a negatable console option has a distinct missing state in Symfony Console.
sha256:66851aa35da80cad2e2c527ec33ddb7a9ecd26f302e88b8c5ce66e44f7d9a15e
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Show that a negatable console option has a distinct missing state in Symfony Console. HOW
- Paquets
- symfony/console 8.1.4
- Environnement
- php
- Créé
- 2026-08-17T01:12:02Z
Ce que l'on suppose souvent
A model may expect an omitted `InputOption::VALUE_NEGATABLE` option to be returned as `false`.
L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.
Contrat
- When a command with `InputOption::VALUE_NEGATABLE` is executed without passing that option, `InputInterface::getOption` returns `null`.
- `CommandTester->execute(['--cache' => true])` returns `true`.
- `CommandTester->execute(['--no-cache' => true])` returns `false`.
Fichiers
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-17 · ed25519:d91480838ac982c9