summaryrefslogtreecommitdiff
path: root/tests/simple_unit/ActiveRecord
diff options
context:
space:
mode:
authorwei <>2007-01-23 12:55:49 +0000
committerwei <>2007-01-23 12:55:49 +0000
commit1c92c3a9fb320ec35949634e53b28ee4ab79f138 (patch)
tree4becb5ff4edca26ca283e5a11506f28e5f3d0f08 /tests/simple_unit/ActiveRecord
parent9e6fdda71cf70275fcf7e4b09230daa713c18b70 (diff)
fix pgsql schema table problems.
Diffstat (limited to 'tests/simple_unit/ActiveRecord')
-rw-r--r--tests/simple_unit/ActiveRecord/CriteriaTestCase.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/simple_unit/ActiveRecord/CriteriaTestCase.php b/tests/simple_unit/ActiveRecord/CriteriaTestCase.php
index f1545e1d..17f691d7 100644
--- a/tests/simple_unit/ActiveRecord/CriteriaTestCase.php
+++ b/tests/simple_unit/ActiveRecord/CriteriaTestCase.php
@@ -31,6 +31,20 @@ class CriteriaTestCase extends UnitTestCase
$this->assertEqual($records[7]->name, '+GX Service');
$this->assertEqual($records[0]->name, 'Marketing');
}
+
+ function test_criteria_parameters()
+ {
+ $criteria = new TActiveRecordCriteria('sql', "One", "two", 3);
+ $expect = array("One", "two", 3);
+ $this->assertEqual($criteria->getParameters()->toArray(), $expect);
+ }
+
+ function test_criteria_parameters_array()
+ {
+ $expect = array("One", "two", 3);
+ $criteria = new TActiveRecordCriteria('sql', $expect);
+ $this->assertEqual($criteria->getParameters()->toArray(), $expect);
+ }
}
?> \ No newline at end of file