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 ((?:'[^']*')|(?:"[^"]*"))( and the default file type|)$/ |
||
47 | * |
||
48 | * @param string $name |
||
49 | * @return void |
||
50 | */ |
||
51 | public function createATextFileWithDefaultFileType($name, $and = '') { |
||
58 | |||
59 | /** |
||
60 | * @When I input :text in the text area |
||
61 | */ |
||
62 | public function iInputTextInTheTextArea($text) |
||
66 | |||
67 | /** |
||
68 | * @When I input the following text in the text area: |
||
69 | */ |
||
70 | public function iInputTheFollowingInTheTextArea(PyStringNode $multiLineText) |
||
74 | |||
75 | /** |
||
76 | * @When I close the text editor |
||
77 | */ |
||
78 | public function iCloseTheTextEditor() |
||
82 | |||
83 | /** |
||
84 | * general before scenario for all text editor tests. |
||
85 | * This will run before EVERY scenario. |
||
86 | * It will set the properties for this object. |
||
87 | * |
||
88 | * @param BeforeScenarioScope $scope |
||
89 | * @return void |
||
90 | * @BeforeScenario |
||
91 | */ |
||
92 | public function before(BeforeScenarioScope $scope) { |
||
103 | } |
||
104 |