1
0
mirror of https://github.com/dg/dibi.git synced 2025-09-09 13:50:57 +02:00

tests: fixes

This commit is contained in:
David Grudl
2015-11-04 15:17:10 +01:00
parent 120f0946e0
commit 8f8fd040ff
10 changed files with 58 additions and 78 deletions

View File

@@ -35,8 +35,8 @@ Assert::false(isset($row['missing']));
// to array
Assert::same(array('product_id' => 1, 'title' => 'Chair'), iterator_to_array($row));
Assert::same(array('product_id' => 1, 'title' => 'Chair'), $row->toArray());
Assert::same(array('product_id' => num(1), 'title' => 'Chair'), iterator_to_array($row));
Assert::same(array('product_id' => num(1), 'title' => 'Chair'), $row->toArray());
// counting
Assert::same(2, count($row));