summaryrefslogtreecommitdiff
path: root/tests/simple_unit/TableGateway/CountTest.php
blob: 56ffb19bd023ecf121ac9017e5cc91f97935a738 (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);
	}
}
?>