mirror of
https://github.com/dg/dibi.git
synced 2025-08-30 09:19:48 +02:00
used PHP 5.4 syntax
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(['product_id' => 1, 'title' => 'Chair'], iterator_to_array($row));
|
||||
Assert::same(['product_id' => 1, 'title' => 'Chair'], $row->toArray());
|
||||
|
||||
// counting
|
||||
Assert::same(2, count($row));
|
||||
|
Reference in New Issue
Block a user