OSDN Git Service

87cd004dec353cca6f350ce1c2c1174d8cdd3214
[ethna/ethna.git] / skel / skel.view_test.php
1 <?php
2 /**
3  *  {$view_path}
4  *
5  *  @author     {$author}
6  *  @package    {$project_id}
7  *  @version    $Id$
8  */
9
10 /**
11  *  {$forward_name} view implementation.
12  *
13  *  @author     {$author}
14  *  @access     public
15  *  @package    {$project_id}
16  */
17 class {$view_class}_TestCase extends Ethna_UnitTestCase
18 {
19     /**
20      *  @access private
21      *  @var    string  view name.
22      */
23     var $forward_name = '{$forward_name}';
24
25     /**
26      * initialize test.
27      *
28      * @access public
29      */
30     function setUp()
31     {
32         $this->createPlainActionForm(); // create ActionForm
33         $this->createViewClass();       // create View.
34     }
35
36     /**
37      *  clean up testcase.
38      *
39      *  @access public
40      */
41     function tearDown()
42     {
43     }
44
45     /**
46      *  {$forward_name} preprocess sample testcase.
47      *
48      *  @access public
49      */
50     function test_viewSample()
51     {
52         /*
53         // setting form input. 
54         $this->af->set('id', 1);
55
56         // {$forward_name} preprocess.
57         $this->vc->preforward();
58         $this->assertNull($this->af->get('data'));
59         */
60
61         /**
62          *  TODO: write test case! :)
63          *  @see http://simpletest.org/en/first_test_tutorial.html
64          *  @see http://simpletest.org/en/unit_test_documentation.html
65          */
66         $this->fail('No Test! write Test!');
67     }
68 }
69 ?>