1 | <?php |
||
33 | class TextEditorContext extends RawMinkContext implements Context |
||
34 | { |
||
35 | private $textEditorPage; |
||
36 | private $featureContext; |
||
37 | private $filesContext; |
||
38 | |||
39 | public function __construct(TextEditorPage $textEditorPage) |
||
43 | |||
44 | /** |
||
45 | * @When I create a text file with the name :name |
||
46 | * |
||
47 | * @param string $name |
||
48 | * @return void |
||
49 | */ |
||
50 | public function createATextFile($name) { |
||
54 | |||
55 | /** |
||
56 | * @When I input :text in the text area |
||
57 | */ |
||
58 | public function iInputTextInTheTextArea($text) |
||
62 | |||
63 | /** |
||
64 | * @When I input the following text in the text area: |
||
65 | */ |
||
66 | public function iInputTheFollowingInTheTextArea(\Behat\Gherkin\Node\PyStringNode $multiLineText) |
||
70 | |||
71 | /** |
||
72 | * general before scenario for all text editor tests. |
||
73 | * This will run before EVERY scenario. |
||
74 | * It will set the properties for this object. |
||
75 | * |
||
76 | * @param BeforeScenarioScope $scope |
||
77 | * @return void |
||
78 | * @BeforeScenario |
||
79 | */ |
||
80 | public function before(BeforeScenarioScope $scope) { |
||
91 | } |
||
92 |