mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
1c894d0cfd
commit
5e8a2fb7f4
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue