mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Row index is not a string
This commit is contained in:
parent
7236020b8b
commit
2b8aa75ee3
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ trait Tools {
|
||||||
$cols = implode(",", array_keys($info['columns']));
|
$cols = implode(",", array_keys($info['columns']));
|
||||||
foreach($drv->prepare("SELECT $cols from $table")->run() as $num => $row) {
|
foreach($drv->prepare("SELECT $cols from $table")->run() as $num => $row) {
|
||||||
$row = array_values($row);
|
$row = array_values($row);
|
||||||
$assertSame($expected[$table]['rows']['$num'], $row, "Row $num of table $table does not match expectation.");
|
$assertSame($expected[$table]['rows'][$num], $row, "Row $num of table $table does not match expectation.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue