1 | <?php |
||
34 | class TextEditorContext extends RawMinkContext implements Context { |
||
35 | private $textEditorPage; |
||
36 | private $featureContext; |
||
37 | private $filesContext; |
||
38 | |||
39 | /** |
||
40 | * TextEditorContext constructor. |
||
41 | * |
||
42 | * @param TextEditorPage $textEditorPage |
||
43 | */ |
||
44 | public function __construct(TextEditorPage $textEditorPage) { |
||
47 | |||
48 | /** |
||
49 | * @When /^I create a text file with the name ((?:'[^']*')|(?:"[^"]*"))( without changing the default file extension|)$/ |
||
50 | * |
||
51 | * @param string $name |
||
52 | * @param string $useDefaultFileExtension |
||
53 | * @return void |
||
54 | */ |
||
55 | public function createATextFileWithTheName( |
||
69 | |||
70 | /** |
||
71 | * @When I input :text in the text area |
||
72 | * @param string $text |
||
73 | * @return void |
||
74 | */ |
||
75 | public function iInputTextInTheTextArea($text) { |
||
81 | |||
82 | /** |
||
83 | * @When I input the following text in the text area: |
||
84 | * @param PyStringNode $multiLineText |
||
85 | * @return void |
||
86 | */ |
||
87 | public function iInputTheFollowingInTheTextArea(PyStringNode $multiLineText) { |
||
93 | |||
94 | /** |
||
95 | * @Then there is/are :number line(s) of text |
||
96 | * @param int $number |
||
97 | * @return void |
||
98 | */ |
||
99 | public function thereAreLinesOfText($number) { |
||
105 | |||
106 | /** |
||
107 | * @Then line :number of the text is :text |
||
108 | * @param int $number |
||
109 | * @param string $text |
||
110 | * @return void |
||
111 | */ |
||
112 | public function lineOfTheTextIs($number, $text) { |
||
120 | /** |
||
121 | * @When I close the text editor |
||
122 | * @return void |
||
123 | */ |
||
124 | public function iCloseTheTextEditor() { |
||
135 | /** |
||
136 | * general before scenario for all text editor tests. |
||
137 | * This will run before EVERY scenario. |
||
138 | * It will set the properties for this object. |
||
139 | * |
||
140 | * @param BeforeScenarioScope $scope |
||
141 | * @return void |
||
142 | * @BeforeScenario |
||
143 | */ |
||
144 | public function before(BeforeScenarioScope $scope) { |
||
155 | } |
||
156 |