Browse files

fix incorrect __construct params for mock object

  • Loading branch information...
1 parent b54dc69 commit 5b67534acc4f6d9c708676bcc16258789c4465b1 @rchavik rchavik committed May 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Test/Case/Console/ShellDispatcherTest.php
View
6 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');

0 comments on commit 5b67534

Please sign in to comment.