Browse files

Updated to use camelize rather than classify

  • Loading branch information...
1 parent 33dc57e commit 153b9f9ee286ec25d4aa0ca14e67d0b94123f2dd @scottharwell scottharwell committed Jan 17, 2012
Showing with 2 additions and 9 deletions.
  1. +2 −9 lib/Cake/Console/Templates/default/classes/test.ctp
View
11 lib/Cake/Console/Templates/default/classes/test.ctp
@@ -84,21 +84,14 @@ class <?php echo $fullClassName; ?>TestCase extends CakeTestCase {
parent::tearDown();
}
-<?php $methodKeys = array();?>
<?php foreach ($methods as $method): ?>
-<?php
- $classifyMethodName = Inflector::classify($method);
- if(!in_array($classifyMethodName, $methodKeys)):
- $methodKeys[] = $classifyMethodName;
-?>
/**
- * test<?php echo $classifyMethodName; ?> method
+ * test<?php echo Inflector::camelize($method); ?> method
*
* @return void
*/
- public function test<?php echo $classifyMethodName; ?>() {
+ public function test<?php echo Inflector::camelize($method); ?>() {
}
- <?php endif; ?>
<?php endforeach;?>
}

0 comments on commit 153b9f9

Please sign in to comment.