diff --git a/tests/lib/Db/Tools.php b/tests/lib/Db/Tools.php index 69764c9f..10d44cab 100644 --- a/tests/lib/Db/Tools.php +++ b/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."); } } }