]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Util/Skeleton/Template/TestClass.tpl.dist
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Util / Skeleton / Template / TestClass.tpl.dist
1 <?php
2 require_once 'PHPUnit/Framework.php';{requireClassFile}
3
4 /**
5  * Test class for {className}.
6  * Generated by PHPUnit on {date} at {time}.
7  */
8 class {className}Test extends PHPUnit_Framework_TestCase
9 {
10     /**
11      * @var    {className}
12      * @access protected
13      */
14     protected $object;
15
16     /**
17      * Sets up the fixture, for example, opens a network connection.
18      * This method is called before a test is executed.
19      *
20      * @access protected
21      */
22     protected function setUp()
23     {
24         $this->object = new {className};
25     }
26
27     /**
28      * Tears down the fixture, for example, closes a network connection.
29      * This method is called after a test is executed.
30      *
31      * @access protected
32      */
33     protected function tearDown()
34     {
35     }
36 {methods}}
37 ?>