From d1475b1fd35c9350cf744cc1ec3543d0e2205838 Mon Sep 17 00:00:00 2001 From: AD7six Date: Wed, 6 Jun 2012 22:24:15 +0200 Subject: [PATCH] initialize $construct variable --- lib/Cake/Console/Command/Task/TestTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }