1 | <?php |
||
18 | trait SelectCommandContextTrait |
||
19 | { |
||
20 | use CommandContextTrait; |
||
21 | |||
22 | /** |
||
23 | * @var Command |
||
24 | */ |
||
25 | protected $selectedCommand; |
||
26 | |||
27 | |||
28 | /** |
||
29 | * @Given I select command :command in namespace :namespace |
||
30 | * |
||
31 | * @param string $command |
||
32 | * @param null|string $namespace |
||
33 | */ |
||
34 | public function iSelectCommandInNamespace(string $command, ?string $namespace) |
||
44 | |||
45 | /** |
||
46 | * @Given selected command has argument :argument |
||
47 | * |
||
48 | * @param string $argument |
||
49 | */ |
||
50 | public function selectedCommandHasArgument(string $argument) |
||
64 | |||
65 | /** |
||
66 | * @Given selected command has option :option |
||
67 | * |
||
68 | * @param string $option |
||
69 | */ |
||
70 | public function selectedCommandHasOption(string $option) |
||
84 | |||
85 | protected function assertSelectedCommand() |
||
92 | |||
93 | } |