mirror of
https://github.com/dg/dibi.git
synced 2025-09-09 13:50:57 +02:00
tests: fixes
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user