mirror of
https://github.com/dg/dibi.git
synced 2025-08-30 01:09:50 +02:00
tests: fixes
This commit is contained in:
@@ -45,8 +45,8 @@ Assert::error(function () use ($row) {
|
||||
|
||||
|
||||
// to array
|
||||
Assert::same(['product_id' => 1, 'title' => 'Chair'], iterator_to_array($row));
|
||||
Assert::same(['product_id' => 1, 'title' => 'Chair'], $row->toArray());
|
||||
Assert::same(['product_id' => num(1), 'title' => 'Chair'], iterator_to_array($row));
|
||||
Assert::same(['product_id' => num(1), 'title' => 'Chair'], $row->toArray());
|
||||
|
||||
// counting
|
||||
Assert::same(2, count($row));
|
||||
|
Reference in New Issue
Block a user