Skip to content

Commit

Permalink
fix incorrect __construct params for mock object
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik authored and lorenzo committed May 11, 2012
1 parent f06fbb0 commit 89959af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Console/ShellDispatcherTest.php
Expand Up @@ -437,7 +437,7 @@ public function testGetShell() {
*/ */
public function testDispatchShellWithMain() { public function testDispatchShellWithMain() {
$Dispatcher = new TestShellDispatcher(); $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('initialize');
$Mock->expects($this->once())->method('loadTasks'); $Mock->expects($this->once())->method('loadTasks');
Expand All @@ -460,9 +460,9 @@ public function testDispatchShellWithMain() {
*/ */
public function testDispatchShellWithoutMain() { public function testDispatchShellWithoutMain() {
$Dispatcher = new TestShellDispatcher(); $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; $this->mockObjects[] = $Shell;


$Shell->expects($this->once())->method('initialize'); $Shell->expects($this->once())->method('initialize');
Expand Down

0 comments on commit 89959af

Please sign in to comment.