fixes #4106, object test

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6459 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-02-14 04:52:46 +00:00
parent 1c894d0cfd
commit 5e8a2fb7f4

View file

@ -41,7 +41,7 @@ class TestObject extends Object {
}
function twoParamMethod($param, $param2) {
$this->methodCalls[] = array('twooParamMethod' => array($param, $param2));
$this->methodCalls[] = array('twoParamMethod' => array($param, $param2));
}
function threeParamMethod($param, $param2, $param3) {
@ -82,7 +82,11 @@ class ObjectTest extends UnitTestCase {
$this->object->oneParamMethod('Hello');
$expected[] = array('oneParamMethod' => array('Hello'));
$this->assertIdentical($this->object->methodCalls, $expected);
$this->object->twoParamMethod(true, false);
$expected[] = array('twoParamMethod' => array(true, false));
$this->assertIdentical($this->object->methodCalls, $expected);
$this->object->threeParamMethod(true, false, null);
$expected[] = array('threeParamMethod' => array(true, false, null));
$this->assertIdentical($this->object->methodCalls, $expected);