summaryrefslogtreecommitdiff
path: root/tests/simple_unit/TableGateway/CountTest.php
blob: 97211e3c7ab0201cd819fd54e8d32588b4632760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?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);
	}
}