Implementing getSvnPath() pre-php5
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 30 Apr 2006 22:48:40 +0000 (22:48 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 30 Apr 2006 22:48:40 +0000 (22:48 +0000)
docs/phpunit/ApplicationControllerTest.php
includes/ApplicationController.php

index 24c8065bd70540945453948a01a747464f239f4f..247cb01c91751a8ad7cd331dd911783b783bd301 100644 (file)
@@ -66,7 +66,7 @@ class ApplicationControllerTest extends PHPUnit2_Framework_TestCase
        */
        public function testGetSvnBinaryPath()
        {
-               throw new PHPUnit2_Framework_IncompleteTestError;
+               $this->assertNotEquals('', $this->fixture->getSvnPath(), 'SVN binary path is empty');
        }
        
        // ###################################################################
index 4a6bb4f45ebb0e1ea7a4ae40bc3218c72023b73a..7c4080f34939269256e0c2d9b5b8591140c9c5de 100644 (file)
@@ -83,6 +83,17 @@ class ApplicationController
        {
                return $this->reposPath;
        }
+       
+       // ###################################################################
+       /**
+       * Returns the SVN binary path ($binaryPath)
+       *
+       * @return       string  The binary path to SVN
+       */
+       public function getSvnPath()
+       {
+               return $this->binaryPath;
+       }
 }
 
 /*=====================================================================*\