Skip to content

Commit

Permalink
Replacing deprecated startTest/endTest by setUp/tearDown in bake temp…
Browse files Browse the repository at this point in the history
…lates.
  • Loading branch information
jrbasso committed Jan 21, 2011
1 parent 1c3e1df commit 1debcb9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cake/console/templates/default/classes/test.ctp
Expand Up @@ -64,22 +64,26 @@ class <?php echo $fullClassName; ?>TestCase extends CakeTestCase {

<?php endif; ?>
/**
* startTest method
* setUp method
*
* @return void
*/
public function startTest() {
public function setUp() {
parent::setUp();

$this-><?php echo $className . ' = ' . $construction; ?>
}

/**
* endTest method
* tearDown method
*
* @return void
*/
public function endTest() {
public function tearDown() {
unset($this-><?php echo $className;?>);
ClassRegistry::flush();

parent::tearDown();
}

<?php foreach ($methods as $method): ?>
Expand Down

0 comments on commit 1debcb9

Please sign in to comment.