OSDN Git Service

Extlibアイデアブランチのマージ (#16100)
[ethna/ethna.git] / skel / skel.test.php
1 <?php\r
2 /**\r
3  * {$file_path}\r
4  * \r
5  * @author    {$author}\r
6  * @package   {$project_id}.Test\r
7  * @version   $Id$\r
8  */\r
9 \r
10 /**\r
11  * {$name} TestCase \r
12  * \r
13  * @author    {$author}\r
14  * @package   {$project_id}.Test\r
15  */\r
16 class {$name}_TestCase extends Ethna_UnitTestCase\r
17 {\r
18     /**\r
19      * initialize test.\r
20      * \r
21      * @access public\r
22      */\r
23     function setUp()\r
24     {\r
25         // TODO: write test initialization code.\r
26         // Example: read test data from database.\r
27     }\r
28     \r
29     /**\r
30      *  clean up testcase.\r
31      * \r
32      *  @access public\r
33      */\r
34     function tearDown()\r
35     {\r
36         // TODO: write testcase cleanup code.\r
37         // Example: restore database data for development.\r
38     }\r
39     \r
40     /**\r
41      * sample testcase.\r
42      * \r
43      * @access public\r
44      */\r
45     function test_{$name}()\r
46     {\r
47         /**\r
48          *  TODO: write test case! :)\r
49          *  @see http://simpletest.org/en/first_test_tutorial.html\r
50          *  @see http://simpletest.org/en/unit_test_documentation.html\r
51          */\r
52         $this->fail('No Test! write Test!');\r
53     }\r
54 }\r
55 \r
56 ?>\r