From 1c92c3a9fb320ec35949634e53b28ee4ab79f138 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 23 Jan 2007 12:55:49 +0000 Subject: fix pgsql schema table problems. --- tests/simple_unit/ActiveRecord/CriteriaTestCase.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/simple_unit/ActiveRecord/CriteriaTestCase.php') 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 -- cgit v1.2.3