|
@@ 214-216 (lines=3) @@
|
| 211 |
|
* $whereNeedle += 2 && $i = 1 because xpath elements starting from 1 |
| 212 |
|
*/ |
| 213 |
|
$arrayForSort = []; |
| 214 |
|
for ($i = 1 ; $i <= $count; ++$i) { |
| 215 |
|
$arrayForSort[$i] = $this->tester->grabTextFrom("//tbody/tr[$i]/td[$whereNeedle]"); |
| 216 |
|
} |
| 217 |
|
/** |
| 218 |
|
* After sort() function arrayForSort start index = 0, but xpath elements starting from 1 |
| 219 |
|
*/ |
|
@@ 221-223 (lines=3) @@
|
| 218 |
|
* After sort() function arrayForSort start index = 0, but xpath elements starting from 1 |
| 219 |
|
*/ |
| 220 |
|
sort($arrayForSort, SORT_NATURAL | SORT_FLAG_CASE); |
| 221 |
|
for ($i = 1 ; $i <= $count; ++$i) { |
| 222 |
|
$this->tester->see($arrayForSort[$i - 1], "//tbody/tr[$i]/td[$whereNeedle]"); |
| 223 |
|
} |
| 224 |
|
} |
| 225 |
|
} |
| 226 |
|
|