From 5b67534acc4f6d9c708676bcc16258789c4465b1 Mon Sep 17 00:00:00 2001 From: Rachman Chavik Date: Wed, 9 May 2012 12:04:24 +0700 Subject: [PATCH] fix incorrect __construct params for mock object --- lib/Cake/Test/Case/Console/ShellDispatcherTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/Console/ShellDispatcherTest.php b/lib/Cake/Test/Case/Console/ShellDispatcherTest.php index 3268d934d03..f7705c47a6b 100644 --- a/lib/Cake/Test/Case/Console/ShellDispatcherTest.php +++ b/lib/Cake/Test/Case/Console/ShellDispatcherTest.php @@ -437,7 +437,7 @@ public function testGetShell() { */ public function testDispatchShellWithMain() { $Dispatcher = new TestShellDispatcher(); - $Mock = $this->getMock('Shell', array(), array(&$Dispatcher), 'MockWithMainShell'); + $Mock = $this->getMock('Shell', array(), array(), 'MockWithMainShell'); $Mock->expects($this->once())->method('initialize'); $Mock->expects($this->once())->method('loadTasks'); @@ -460,9 +460,9 @@ public function testDispatchShellWithMain() { */ public function testDispatchShellWithoutMain() { $Dispatcher = new TestShellDispatcher(); - $Shell = $this->getMock('Shell', array(), array(&$Dispatcher), 'MockWithoutMainShell'); + $Shell = $this->getMock('Shell', array(), array(), 'MockWithoutMainShell'); - $Shell = new MockWithoutMainShell($Dispatcher); + $Shell = new MockWithoutMainShell(); $this->mockObjects[] = $Shell; $Shell->expects($this->once())->method('initialize');