<?php require_once(dirname(__FILE__).'/BaseGateway.php'); /** * @package System.Data.TableGateway */ class CountTest extends BaseGateway { function test_simple_count() { $result = $this->getGateway2()->count(); $this->assertEquals(5,$result); $result = $this->getGateway2()->count('department_id = ?', 1); $this->assertEquals(2, $result); } }