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 | /** |
||
72 | * @Then near the new text file box a tooltip with the text :toolTipText should be displayed |
||
73 | */ |
||
74 | public function nearTheNewTextFileBoxATooltipShouldBeDisplayed($toolTipText) |
||
80 | |||
81 | /** |
||
82 | * @When I input :text in the text area |
||
83 | * @param string $text |
||
84 | * @return void |
||
85 | */ |
||
86 | public function iInputTextInTheTextArea($text) { |
||
92 | |||
93 | /** |
||
94 | * @When I input the following text in the text area: |
||
95 | * @param PyStringNode $multiLineText |
||
96 | * @return void |
||
97 | */ |
||
98 | public function iInputTheFollowingInTheTextArea(PyStringNode $multiLineText) { |
||
104 | |||
105 | /** |
||
106 | * @Then there is/are :number line(s) of text |
||
107 | * @param int $number |
||
108 | * @return void |
||
109 | */ |
||
110 | public function thereAreLinesOfText($number) { |
||
116 | |||
117 | /** |
||
118 | * @Then line :number of the text is :text |
||
119 | * @param int $number |
||
120 | * @param string $text |
||
121 | * @return void |
||
122 | */ |
||
123 | public function lineOfTheTextIs($number, $text) { |
||
131 | /** |
||
132 | * @When I close the text editor |
||
133 | * @return void |
||
134 | */ |
||
135 | public function iCloseTheTextEditor() { |
||
138 | /** |
||
139 | * general before scenario for all text editor tests. |
||
140 | * This will run before EVERY scenario. |
||
141 | * It will set the properties for this object. |
||
142 | * |
||
143 | * @param BeforeScenarioScope $scope |
||
144 | * @return void |
||
145 | * @BeforeScenario |
||
146 | */ |
||
147 | public function before(BeforeScenarioScope $scope) { |
||
158 | } |
||
159 |