fetchAll() public method

Fetch Row
public fetchAll ( mixed $query, mixed $parameters = null ) : array
$query mixed (\Zend\Db\Sql\*|string) Query
$parameters mixed Parameters
return array
Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testFetchAllFromQuery()
 {
     $select = new Select();
     $select->from('user');
     $result = $this->object->fetchAll($select);
     $this->assertInternalType('array', $result);
 }