I think I've finished the unit tests for AppController
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 24 Apr 2006 07:11:10 +0000 (07:11 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 24 Apr 2006 07:11:10 +0000 (07:11 +0000)
docs/phpunit/ApplicationControllerTest.php

index 6de9129b580e59c94dbeb4006301c98f55f0cc7e..9e41dd0c2079f533135dceeef32ca488d889af6b 100644 (file)
 <?php
 
 // load test harness
+require_once('PHPUnit2/Framework/IncompleteTestError.php');
 require_once('PHPUnit2/Framework/TestCase.php');
 
 // load piggy
-chdir('./../../');
-require_once('./includes/Applicationcontroller.php');
+require_once('./../../includes/ApplicationController.php');
 
+/**
+* ApplicationController Test Suite
+*
+* @author              Iris Studios, Inc.
+* @copyright   Copyright ©2002 - [#]year[#], Iris Studios, Inc.
+* @version             $Revision$
+* @package             ViewSVN Tests
+* 
+*/
 class ApplicationControllerTest extends PHPUnit2_Framework_TestCase
 {
        protected $fixture;
        
        public function setUp() {}
+       
+       // ###################################################################
+       /**
+       * Makes sure that when the controller is created the proper fields
+       * have been set.
+       */
+       public function testNewControllerFields()
+       {
+               throw new PHPUnit2_Framework_IncompleteTestError;
+       }
+       
+       // ###################################################################
+       /**
+       * Checks that getRepositoryName() does not return empty.
+       */
+       public function testGetRepositoryName()
+       {
+               throw new PHPUnit2_Framework_IncompleteTestError;
+       }
+       
+       // ###################################################################
+       /**
+       * Checks that getRepositoryUri() in the controller matches the one
+       * specified in the configuration.
+       */
+       public function testGetRepositoryUri()
+       {
+               throw new PHPUnit2_Framework_IncompleteTestError;
+       }
+       
+       // ###################################################################
+       /**
+       * Checks that the command path to the SVN binary is not empty.
+       */
+       public function testGetSvnBinaryPath()
+       {
+               throw new PHPUnit2_Framework_IncompleteTestError;
+       }
+       
+       // ###################################################################
+       /**
+       * Checks that the revision number is set when passed via HTTP_GET or
+       * HTTP_POST.
+       */
+       public function testHttpRequestedRevisionNumberSet()
+       {
+               throw new PHPUnit2_Framework_IncompleteTestError;
+       }
+       
+       // ###################################################################
+       /**
+       * Checks that the revision number is set when no arguments are passed.
+       */
+       public function testUnRequestedRevisionNumberSet()
+       {
+               throw new PHPUnit2_Framework_IncompleteTestError;
+       }
+       
+       // ###################################################################
+       /**
+       * Checks that the relative path always ends in a trailing slash if the
+       * active node is a directory.
+       */
+       public function testRelativePathEndsWithSlash()
+       {
+               throw new PHPUnit2_Framework_IncompleteTestError;
+       }
+       
+       // ###################################################################
+       /**
+       * Checks that even without a HTTP request that a node is present.
+       */
+       public function testUnRequestedNodePresence()
+       {
+               throw new PHPUnit2_Framework_IncompleteTestError;
+       }
+       
+       // ###################################################################
+       /**
+       * Checks the validity of a HTTP_GET requested node.
+       */
+       public function testHttpRequestedNodePresence()
+       {
+               throw new PHPUnit2_Framework_IncompleteTestError;
+       }
+       
+       // ###################################################################
+       /**
+       * Verifies the ability to fetch an arbitrary node.
+       */
+       public function testFetchArbitraryNode()
+       {
+               throw new PHPUnit2_Framework_IncompleteTestError;
+       }
 }
 
 ?>
\ No newline at end of file