Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix incorrect __construct params for mock object

  • Loading branch information...
commit 89959afa63b108c5457a9f32fda4536cf6dea958 1 parent f06fbb0
@rchavik rchavik authored lorenzo committed
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');
Please sign in to comment.
Something went wrong with that request. Please try again.