mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
updating some tests for php4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8280 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
303b488bc1
commit
57552c25fc
4 changed files with 14 additions and 8 deletions
|
@ -86,7 +86,7 @@ class AclShellTest extends CakeTestCase {
|
|||
function startTest() {
|
||||
$this->Dispatcher =& new TestAclShellMockShellDispatcher();
|
||||
$this->Task =& new MockAclShell($this->Dispatcher);
|
||||
$this->Task->Dispatch = new $this->Dispatcher;
|
||||
$this->Task->Dispatch =& $this->Dispatcher;
|
||||
$this->Task->params['datasource'] = 'test_suite';
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ class ApiShellTest extends CakeTestCase {
|
|||
function startTest() {
|
||||
$this->Dispatcher =& new ApiShellMockShellDispatcher();
|
||||
$this->Shell =& new MockApiShell($this->Dispatcher);
|
||||
$this->Shell->Dispatch = new $this->Dispatcher;
|
||||
$this->Shell->Dispatch =& $this->Dispatcher;
|
||||
}
|
||||
/**
|
||||
* tearDown method
|
||||
|
|
|
@ -37,10 +37,9 @@ if (!class_exists('ShellDispatcher')) {
|
|||
ob_end_clean();
|
||||
}
|
||||
|
||||
Mock::generatePartial(
|
||||
'ShellDispatcher', 'TestShellMockShellDispatcher',
|
||||
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
|
||||
);
|
||||
Mock::generatePartial('ShellDispatcher', 'TestShellMockShellDispatcher', array(
|
||||
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
|
||||
));
|
||||
/**
|
||||
* TestShell class
|
||||
*
|
||||
|
@ -48,6 +47,13 @@ Mock::generatePartial(
|
|||
* @subpackage cake.tests.cases.console.libs
|
||||
*/
|
||||
class TestShell extends Shell {
|
||||
/**
|
||||
* Fixtures used in this test case
|
||||
*
|
||||
* @var name
|
||||
* @access public
|
||||
*/
|
||||
var $name = 'TestShell';
|
||||
}
|
||||
/**
|
||||
* TestAppleTask class
|
||||
|
|
|
@ -65,7 +65,7 @@ class TestTaskTest extends CakeTestCase {
|
|||
function setUp() {
|
||||
$this->Dispatcher =& new TestTestTaskMockShellDispatcher();
|
||||
$this->Task =& new MockTestTask($this->Dispatcher);
|
||||
$this->Task->Dispatch = new $this->Dispatcher;
|
||||
$this->Task->Dispatch =& $this->Dispatcher;
|
||||
}
|
||||
/**
|
||||
* tearDown method
|
||||
|
|
Loading…
Reference in a new issue