Deprecated: Assigning the return value of new by reference is deprecated in /home/bluestat/public_html/source/index.php on line 477
ViewSVN - Commitdiff - ViewGit - Blue Static

Implementing getSvnPath()

Robert Sesek [2006-04-30 22:48]
Implementing getSvnPath()
diff --git a/docs/phpunit/ApplicationControllerTest.php b/docs/phpunit/ApplicationControllerTest.php
index 24c8065..247cb01 100644
--- a/docs/phpunit/ApplicationControllerTest.php
+++ b/docs/phpunit/ApplicationControllerTest.php
@@ -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');
 	}

 	// ###################################################################
diff --git a/includes/ApplicationController.php b/includes/ApplicationController.php
index 4a6bb4f..7c4080f 100644
--- a/includes/ApplicationController.php
+++ b/includes/ApplicationController.php
@@ -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;
+	}
 }

 /*=====================================================================*\