1 | <?php |
||
35 | class TextEditorContext extends RawMinkContext implements Context { |
||
36 | private $textEditorPage; |
||
37 | private $featureContext; |
||
38 | private $filesContext; |
||
39 | |||
40 | /** |
||
41 | * TextEditorContext constructor. |
||
42 | * |
||
43 | * @param TextEditorPage $textEditorPage |
||
44 | */ |
||
45 | public function __construct(TextEditorPage $textEditorPage) { |
||
48 | |||
49 | /** |
||
50 | * @When /^I create a text file with the name ((?:'[^']*')|(?:"[^"]*"))( without changing the default file extension|)$/ |
||
51 | * |
||
52 | * @param string $name |
||
53 | * @param string $useDefaultFileExtension |
||
54 | * @return void |
||
55 | */ |
||
56 | public function createATextFileWithTheName( |
||
70 | |||
71 | |||
72 | /** |
||
73 | * @Then near the new text file box a tooltip with the text :toolTipText should be displayed |
||
74 | * @param string $toolTipText |
||
75 | * @return void |
||
76 | */ |
||
77 | public function nearTheNewTextFileBoxATooltipShouldBeDisplayed($toolTipText) { |
||
83 | |||
84 | /** |
||
85 | * @When I input :text in the text area |
||
86 | * @param string $text |
||
87 | * @return void |
||
88 | */ |
||
89 | public function iInputTextInTheTextArea($text) { |
||
95 | |||
96 | /** |
||
97 | * @When I input the following text in the text area: |
||
98 | * @param PyStringNode $multiLineText |
||
99 | * @return void |
||
100 | */ |
||
101 | public function iInputTheFollowingInTheTextArea(PyStringNode $multiLineText) { |
||
107 | |||
108 | /** |
||
109 | * @Then there is/are :number line(s) of text |
||
110 | * @param int $number |
||
111 | * @return void |
||
112 | */ |
||
113 | public function thereAreLinesOfText($number) { |
||
119 | |||
120 | /** |
||
121 | * @Then line :number of the text is :text |
||
122 | * @param int $number |
||
123 | * @param string $text |
||
124 | * @return void |
||
125 | */ |
||
126 | public function lineOfTheTextIs($number, $text) { |
||
134 | /** |
||
135 | * @When I close the text editor |
||
136 | * @return void |
||
137 | */ |
||
138 | public function iCloseTheTextEditor() { |
||
141 | /** |
||
142 | * general before scenario for all text editor tests. |
||
143 | * This will run before EVERY scenario. |
||
144 | * It will set the properties for this object. |
||
145 | * |
||
146 | * @param BeforeScenarioScope $scope |
||
147 | * @return void |
||
148 | * @BeforeScenario |
||
149 | */ |
||
150 | public function before(BeforeScenarioScope $scope) { |
||
159 | } |
||
160 |