Created
August 22, 2011 02:38
-
-
Save monsat/1161545 to your computer and use it in GitHub Desktop.
Skeleton file of Helper Test Case for CakePHP2.0 (beta)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
App::uses('View', 'View'); | |
App::uses('SampleHelper', 'View/Helper'); | |
class SampleHelperTestCase extends CakeTestCase { | |
public function setUp() { | |
parent::setUp(); | |
$this->View = new View(null); | |
$this->SampleHelper = new SampleHelper($this->View); | |
} | |
public function tearDown() { | |
unset($this->SampleHelper); | |
ClassRegistry::flush(); | |
parent::tearDown(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment