diff --git a/cake/tests/cases/console/libs/tasks/extract.test.php b/cake/tests/cases/console/libs/tasks/extract.test.php index 041f475ef..900193b85 100644 --- a/cake/tests/cases/console/libs/tasks/extract.test.php +++ b/cake/tests/cases/console/libs/tasks/extract.test.php @@ -149,9 +149,6 @@ class ExtractTaskTest extends CakeTestCase { $Folder = new Folder($path); $Folder->delete(); } - function getTests() { - return array('start', 'startCase', 'testExtractMultiplePaths', 'endCase', 'end'); - } /** * test extract can read more than one path. @@ -169,8 +166,8 @@ class ExtractTaskTest extends CakeTestCase { TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views' . DS . 'posts'; $this->Task->params['output'] = $path . DS; - $this->Task->Dispatch->expectNever('stderr'); - $this->Task->Dispatch->expectNever('_stop'); + $this->Task->Dispatch->expects($this->never())->method('stderr'); + $this->Task->Dispatch->expects($this->never())->method('_stop'); $this->Task->execute(); $result = file_get_contents($path . DS . 'default.pot');