1 | <?php |
||
34 | class TextEditorContext extends RawMinkContext implements Context |
||
35 | { |
||
36 | private $textEditorPage; |
||
37 | private $featureContext; |
||
38 | private $filesContext; |
||
39 | |||
40 | public function __construct(TextEditorPage $textEditorPage) |
||
44 | |||
45 | /** |
||
46 | * @When /^I create a text file with the name ((?:'[^']*')|(?:"[^"]*"))( without changing the default file extension|)$/ |
||
47 | * |
||
48 | * @param string $name |
||
49 | * @return void |
||
50 | */ |
||
51 | public function createATextFileWithTheName($name, $useDefaultFileExtension = '') { |
||
62 | |||
63 | /** |
||
64 | * @When I input :text in the text area |
||
65 | */ |
||
66 | public function iInputTextInTheTextArea($text) |
||
70 | |||
71 | /** |
||
72 | * @When I input the following text in the text area: |
||
73 | */ |
||
74 | public function iInputTheFollowingInTheTextArea(PyStringNode $multiLineText) |
||
78 | |||
79 | /** |
||
80 | * @When I close the text editor |
||
81 | */ |
||
82 | public function iCloseTheTextEditor() |
||
86 | |||
87 | /** |
||
88 | * general before scenario for all text editor tests. |
||
89 | * This will run before EVERY scenario. |
||
90 | * It will set the properties for this object. |
||
91 | * |
||
92 | * @param BeforeScenarioScope $scope |
||
93 | * @return void |
||
94 | * @BeforeScenario |
||
95 | */ |
||
96 | public function before(BeforeScenarioScope $scope) { |
||
107 | } |
||
108 |