From 2b8aa75ee30edc9f3f1bfaff7bbfab88b5a46abd Mon Sep 17 00:00:00 2001 From: "J. King" Date: Mon, 27 Mar 2017 23:26:51 -0400 Subject: [PATCH] Row index is not a string --- tests/lib/Db/Tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/Db/Tools.php b/tests/lib/Db/Tools.php index 69764c9..10d44ca 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."); } } }