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 :name |
||
47 | * |
||
48 | * @param string $name |
||
49 | * @return void |
||
50 | */ |
||
51 | public function createATextFile($name) { |
||
55 | |||
56 | /** |
||
57 | * @When I input :text in the text area |
||
58 | */ |
||
59 | public function iInputTextInTheTextArea($text) |
||
63 | |||
64 | /** |
||
65 | * @When I input the following text in the text area: |
||
66 | */ |
||
67 | public function iInputTheFollowingInTheTextArea(PyStringNode $multiLineText) |
||
71 | |||
72 | /** |
||
73 | * general before scenario for all text editor tests. |
||
74 | * This will run before EVERY scenario. |
||
75 | * It will set the properties for this object. |
||
76 | * |
||
77 | * @param BeforeScenarioScope $scope |
||
78 | * @return void |
||
79 | * @BeforeScenario |
||
80 | */ |
||
81 | public function before(BeforeScenarioScope $scope) { |
||
92 | } |
||
93 |