Adding tests for other object types.

This commit is contained in:
mark_story 2009-05-25 01:02:59 -04:00
parent 975aab8009
commit 66b36ba3b8
2 changed files with 12 additions and 4 deletions

View file

@ -390,12 +390,12 @@ class TestTask extends Shell {
function generateConstructor($type, $fullClassName) {
$type = strtolower($type);
if ($type == 'model') {
return "ClassRegistry::init('$fullClassName');";
return "ClassRegistry::init('$fullClassName');\n";
}
if ($type == 'controller') {
return "new Test$fullClassName();\n\t\t\$this->{$fullClassName}->constructClasses();";
return "new Test$fullClassName();\n\t\t\$this->{$fullClassName}->constructClasses();\n";
}
return "new $fullClassName";
return "new $fullClassName()\n";
}
/**