blob: 1d3b60eea28a6a93f96be6d9004d684b329c1f68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?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);
}
}
|