summaryrefslogtreecommitdiff
path: root/tests/simple_unit/TableGateway/CountTest.php
blob: 0e159ab0faf8c0e776dcd8fd2caea389caff9169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

require_once(dirname(__FILE__).'/BaseGatewayTest.php');

class CountTest extends BaseGatewayTest
{
	function test_simple_count()
	{
		$result = $this->getGateway2()->count();
		$this->assertEqual(44,$result);

		$result = $this->getGateway2()->count('department_id = ?', 1);
		$this->assertEqual(4, $result);
	}
}
?>