From a01ed9f468e6a6b24d3dfe48ecf0cf5a7ad645d7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 30 Apr 2006 22:48:40 +0000 Subject: [PATCH] Implementing getSvnPath() --- docs/phpunit/ApplicationControllerTest.php | 2 +- includes/ApplicationController.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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; + } } /*=====================================================================*\ -- 2.22.5