1 | <?php |
||
17 | class DefaultPipelineContext extends BaseContext implements Context, SnippetAcceptingContext |
||
18 | { |
||
19 | private $workingTable = 'book'; |
||
20 | private $workingFile; |
||
21 | private $pipeline; |
||
22 | private $output; |
||
23 | private $connection; |
||
24 | |||
25 | /** |
||
26 | * @Given a file named :name with: |
||
27 | */ |
||
28 | public function aFileNamedWith($name, PyStringNode $content) |
||
32 | |||
33 | /** |
||
34 | * @Given I create csv to console pipeline |
||
35 | */ |
||
36 | public function iCreateCsvToConsolePipeline() |
||
46 | |||
47 | /** |
||
48 | * @Given I create csv to database pipeline |
||
49 | */ |
||
50 | public function iCreateCsvToDatabasePipeline() |
||
67 | |||
68 | /** |
||
69 | * @Given I process it |
||
70 | */ |
||
71 | public function iProcessIt() |
||
75 | |||
76 | /** |
||
77 | * @Then I should see in console: |
||
78 | */ |
||
79 | public function iShouldSeeInConsole(PyStringNode $expected) |
||
86 | |||
87 | /** |
||
88 | * @Then I should see in database: |
||
89 | */ |
||
90 | public function iShouldSeeInDatabase(TableNode $table) |
||
104 | |||
105 | private function createCsvExtractor() |
||
109 | |||
110 | private function getConnection() |
||
119 | } |
||
120 |