1 | <?php |
||
22 | class ImplementContext implements Context |
||
23 | { |
||
24 | use SelectCommandContextTrait; |
||
25 | |||
26 | const COMMAND_NAME = 'behavior:implement'; |
||
27 | |||
28 | /** |
||
29 | * @var ImplementCommand |
||
30 | */ |
||
31 | private $implementCommand; |
||
32 | |||
33 | /** |
||
34 | * @var Configurator |
||
35 | */ |
||
36 | private $configurator; |
||
37 | |||
38 | /** |
||
39 | * Initializes context. |
||
40 | * |
||
41 | * Every scenario gets its own context instance. |
||
42 | * You can also pass arbitrary arguments to the |
||
43 | * context constructor through behat.yml. |
||
44 | */ |
||
45 | public function __construct() |
||
48 | |||
49 | /** |
||
50 | * @beforeScenario |
||
51 | */ |
||
52 | public function setup() |
||
60 | |||
61 | private function setupCommand() |
||
71 | |||
72 | |||
73 | /** |
||
74 | * @Given I type a behavior implement command |
||
75 | * @Given I type a phpspec behavior implement command |
||
76 | */ |
||
77 | public function iTypeABehaviorImplementCommand() |
||
81 | |||
82 | /** |
||
83 | * @Given I type a behavior implement command without Arguments |
||
84 | * @Given I type a phpspec behavior implement command without Arguments |
||
85 | */ |
||
86 | public function iTypeAPhpspecBehaviorImplementCommandWithoutArguments() |
||
90 | |||
91 | /** |
||
92 | * @return ImplementCommand |
||
93 | */ |
||
94 | public function getImplementCommand(): ImplementCommand |
||
102 | |||
103 | private function createImplementCommand() |
||
114 | |||
115 | /** |
||
116 | * @return Configurator |
||
117 | */ |
||
118 | public function getConfigurator(): Configurator |
||
124 | |||
125 | |||
126 | } |
||
127 |