1 | <?php |
||
7 | class TableContext extends BaseContext |
||
8 | { |
||
9 | /** |
||
10 | * Checks that the specified table's columns match the given schema |
||
11 | * |
||
12 | * @Then the columns schema of the :table table should match: |
||
13 | */ |
||
14 | public function theColumnsSchemaShouldMatch($table, TableNode $text) |
||
25 | |||
26 | /** |
||
27 | * Checks that the specified table contains the given number of columns |
||
28 | * |
||
29 | * @Then (I )should see :count column(s) in the :table table |
||
30 | */ |
||
31 | public function iShouldSeeColumnsInTheTable($count, $table) |
||
38 | |||
39 | /** |
||
40 | * Checks that the specified table contains the specified number of rows in its body |
||
41 | * |
||
42 | * @Then (I )should see :count rows in the :index :table table |
||
43 | */ |
||
44 | public function iShouldSeeRowsInTheNthTable($count, $index, $table) |
||
49 | |||
50 | /** |
||
51 | * Checks that the specified table contains the specified number of rows in its body |
||
52 | * |
||
53 | * @Then (I )should see :count row(s) in the :table table |
||
54 | */ |
||
55 | public function iShouldSeeRowsInTheTable($count, $table) |
||
59 | |||
60 | /** |
||
61 | * Checks that the data of the specified row matches the given schema |
||
62 | * |
||
63 | * @Then the data in the :index row of the :table table should match: |
||
64 | */ |
||
65 | public function theDataOfTheRowShouldMatch($index, $table, TableNode $text) |
||
87 | |||
88 | /** |
||
89 | * Checks that the specified cell (column/row) of the table's body contains the specified text |
||
90 | * |
||
91 | * @Then the :colIndex column of the :rowIndex row in the :table table should contain :text |
||
92 | */ |
||
93 | public function theStColumnOfTheStRowInTheTableShouldContain($colIndex, $rowIndex, $table, $text) |
||
113 | } |
||
114 |