Skip to content

Commit

Permalink
Updated to use camelize rather than classify
Browse files Browse the repository at this point in the history
  • Loading branch information
scottharwell committed Jan 17, 2012
1 parent 33dc57e commit 153b9f9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/Cake/Console/Templates/default/classes/test.ctp
Expand Up @@ -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.