diff --git a/lib/Cake/Console/Command/Task/TestTask.php b/lib/Cake/Console/Command/Task/TestTask.php index 20d7e7b9b..f8509f274 100644 --- a/lib/Cake/Console/Command/Task/TestTask.php +++ b/lib/Cake/Console/Command/Task/TestTask.php @@ -452,7 +452,7 @@ class TestTask extends BakeTask { */ public function generateConstructor($type, $fullClassName, $plugin) { $type = strtolower($type); - $pre = $post = ''; + $pre = $construct = $post = ''; if ($type == 'model') { $construct = "ClassRegistry::init('{$plugin}$fullClassName');\n"; }