summaryrefslogtreecommitdiff
path: root/tests/simple_unit/TableGateway/CountTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple_unit/TableGateway/CountTest.php')
-rw-r--r--tests/simple_unit/TableGateway/CountTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/simple_unit/TableGateway/CountTest.php b/tests/simple_unit/TableGateway/CountTest.php
new file mode 100644
index 00000000..56ffb19b
--- /dev/null
+++ b/tests/simple_unit/TableGateway/CountTest.php
@@ -0,0 +1,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);
+ }
+}
+?> \ No newline at end of file