summaryrefslogtreecommitdiff
path: root/tests/simple_unit/SqlMap/queryForListLimitTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple_unit/SqlMap/queryForListLimitTest.php')
-rw-r--r--tests/simple_unit/SqlMap/queryForListLimitTest.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/simple_unit/SqlMap/queryForListLimitTest.php b/tests/simple_unit/SqlMap/queryForListLimitTest.php
deleted file mode 100644
index af550dcb..00000000
--- a/tests/simple_unit/SqlMap/queryForListLimitTest.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-require_once(dirname(__FILE__).'/BaseCase.php');
-
-/**
- * @package System.DataAccess.SQLMap
- */
-class queryForListLimitTest extends BaseCase
-{
- function __construct()
- {
- parent::__construct();
-
- $this->initSqlMap();
-
- //force autoload
- new Account;
- }
-
- function resetDatabase()
- {
- $this->initScript('account-init.sql');
- }
-
- function test_accounts_limit_2()
- {
- $list1 = $this->sqlmap->queryForList('GetAllAccountsAsArrayListViaResultClass',null,null,1,2);
- $this->assertEqual(count($list1),2);
-
- $this->assertEqual($list1[0][0],'2');
- $this->assertEqual($list1[0][1],'Averel');
- $this->assertEqual($list1[0][2],'Dalton');
-
- $this->assertEqual($list1[1][0],'3');
- $this->assertEqual($list1[1][1],'William');
- $this->assertEqual($list1[1][2],'Dalton');
- }
-}