Browse Source

Row index is not a string

microsub
J. King 7 years ago
parent
commit
2b8aa75ee3
  1. 2
      tests/lib/Db/Tools.php

2
tests/lib/Db/Tools.php

@ -23,7 +23,7 @@ trait Tools {
$cols = implode(",", array_keys($info['columns']));
foreach($drv->prepare("SELECT $cols from $table")->run() as $num => $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…
Cancel
Save