I think I've finished the unit tests for AppController
[viewsvn.git] / docs / phpunit / ApplicationControllerTest.php
1 <?php
2
3 // load test harness
4 require_once('PHPUnit2/Framework/IncompleteTestError.php');
5 require_once('PHPUnit2/Framework/TestCase.php');
6
7 // load piggy
8 require_once('./../../includes/ApplicationController.php');
9
10 /**
11 * ApplicationController Test Suite
12 *
13 * @author Iris Studios, Inc.
14 * @copyright Copyright ©2002 - [#]year[#], Iris Studios, Inc.
15 * @version $Revision$
16 * @package ViewSVN Tests
17 *
18 */
19 class ApplicationControllerTest extends PHPUnit2_Framework_TestCase
20 {
21 protected $fixture;
22
23 public function setUp() {}
24
25 // ###################################################################
26 /**
27 * Makes sure that when the controller is created the proper fields
28 * have been set.
29 */
30 public function testNewControllerFields()
31 {
32 throw new PHPUnit2_Framework_IncompleteTestError;
33 }
34
35 // ###################################################################
36 /**
37 * Checks that getRepositoryName() does not return empty.
38 */
39 public function testGetRepositoryName()
40 {
41 throw new PHPUnit2_Framework_IncompleteTestError;
42 }
43
44 // ###################################################################
45 /**
46 * Checks that getRepositoryUri() in the controller matches the one
47 * specified in the configuration.
48 */
49 public function testGetRepositoryUri()
50 {
51 throw new PHPUnit2_Framework_IncompleteTestError;
52 }
53
54 // ###################################################################
55 /**
56 * Checks that the command path to the SVN binary is not empty.
57 */
58 public function testGetSvnBinaryPath()
59 {
60 throw new PHPUnit2_Framework_IncompleteTestError;
61 }
62
63 // ###################################################################
64 /**
65 * Checks that the revision number is set when passed via HTTP_GET or
66 * HTTP_POST.
67 */
68 public function testHttpRequestedRevisionNumberSet()
69 {
70 throw new PHPUnit2_Framework_IncompleteTestError;
71 }
72
73 // ###################################################################
74 /**
75 * Checks that the revision number is set when no arguments are passed.
76 */
77 public function testUnRequestedRevisionNumberSet()
78 {
79 throw new PHPUnit2_Framework_IncompleteTestError;
80 }
81
82 // ###################################################################
83 /**
84 * Checks that the relative path always ends in a trailing slash if the
85 * active node is a directory.
86 */
87 public function testRelativePathEndsWithSlash()
88 {
89 throw new PHPUnit2_Framework_IncompleteTestError;
90 }
91
92 // ###################################################################
93 /**
94 * Checks that even without a HTTP request that a node is present.
95 */
96 public function testUnRequestedNodePresence()
97 {
98 throw new PHPUnit2_Framework_IncompleteTestError;
99 }
100
101 // ###################################################################
102 /**
103 * Checks the validity of a HTTP_GET requested node.
104 */
105 public function testHttpRequestedNodePresence()
106 {
107 throw new PHPUnit2_Framework_IncompleteTestError;
108 }
109
110 // ###################################################################
111 /**
112 * Verifies the ability to fetch an arbitrary node.
113 */
114 public function testFetchArbitraryNode()
115 {
116 throw new PHPUnit2_Framework_IncompleteTestError;
117 }
118 }
119
120 ?>