Permalink
Browse files

fix incorrect __construct params for mock object

  • Loading branch information...
1 parent f06fbb0 commit 89959afa63b108c5457a9f32fda4536cf6dea958 @rchavik rchavik committed with lorenzo 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 89959af

Please sign in to comment.