Example #1
0
 /**
  * @dataProvider dataCountProvider
  */
 public function testCount($resultData, $expectedCount)
 {
     $select = new Select(new \Zend\Db\Sql\Select());
     $this->table = $this->getMock('T4webBase\\Db\\Table', array('selectMany'), array($this->tableGatewayMock, 'id'));
     $this->table->expects($this->once())->method('selectMany')->with($this->equalTo($select))->will($this->returnValue($resultData));
     $this->assertEquals($expectedCount, $this->table->count($select));
 }