4 require_once('PHPUnit2/Framework/IncompleteTestError.php');
5 require_once('PHPUnit2/Framework/TestCase.php');
8 require_once('./../../includes/ApplicationController.php');
11 * ApplicationController Test Suite
13 * @author Iris Studios, Inc.
14 * @copyright Copyright ©2002 - [#]year[#], Iris Studios, Inc.
16 * @package ViewSVN Tests
19 class ApplicationControllerTest
extends PHPUnit2_Framework_TestCase
22 * Internal fixture: an instance of ApplicationController
27 public function setUp()
29 $this->fixture
= new ApplicationController(APPLICATION_CONTROLLER_BINARY_PATH
, APPLICATION_CONTROLLER_REPOS_PATH
);
32 // ###################################################################
34 * Makes sure that when the controller is created the proper fields
37 public function testNewControllerFields()
39 throw new PHPUnit2_Framework_IncompleteTestError
;
42 // ###################################################################
44 * Checks that getRepositoryName() does not return empty.
46 public function testGetRepositoryName()
48 throw new PHPUnit2_Framework_IncompleteTestError
;
51 // ###################################################################
53 * Checks that getRepositoryUri() in the controller matches the one
54 * specified in the configuration.
56 public function testGetRepositoryUri()
58 $this->assertEquals(APPLICATION_CONTROLLER_REPOS_PATH
, $this->fixture
->getRepositoryPath(), 'Repository path is empty');
59 $this->assertRegExp('#(.*)/$#', $this->fixture
->getRepositoryPath(), 'Repository path does not end with a slash');
62 // ###################################################################
64 * Checks that the command path to the SVN binary is not empty.
66 public function testGetSvnBinaryPath()
68 throw new PHPUnit2_Framework_IncompleteTestError
;
71 // ###################################################################
73 * Checks that the revision number is set when passed via HTTP_GET or
76 public function testHttpRequestedRevisionNumberSet()
78 throw new PHPUnit2_Framework_IncompleteTestError
;
81 // ###################################################################
83 * Checks that the revision number is set when no arguments are passed.
85 public function testUnRequestedRevisionNumberSet()
87 throw new PHPUnit2_Framework_IncompleteTestError
;
90 // ###################################################################
92 * Checks that the relative path always ends in a trailing slash if the
93 * active node is a directory.
95 public function testRelativePathEndsWithSlash()
97 throw new PHPUnit2_Framework_IncompleteTestError
;
100 // ###################################################################
102 * Checks that even without a HTTP request that a node is present.
104 public function testUnRequestedNodePresence()
106 throw new PHPUnit2_Framework_IncompleteTestError
;
109 // ###################################################################
111 * Checks the validity of a HTTP_GET requested node.
113 public function testHttpRequestedNodePresence()
115 throw new PHPUnit2_Framework_IncompleteTestError
;
118 // ###################################################################
120 * Verifies the ability to fetch an arbitrary node.
122 public function testFetchArbitraryNode()
124 throw new PHPUnit2_Framework_IncompleteTestError
;