require_once('PHPUnit2/Framework/Warning.php');
require_once('PHPUnit2/Framework/IncompleteTestError.php');
+require_once('config.php');
require_once('/Server/htdocs/tools/ISI_PHPUnit2_Output_HTML_Listener.php');
require_once('PHPUnit2/TextUI/ResultPrinter.php');
* @var object
*/
protected $fixture;
-
- /**
- * Repository path
- * @var string
- */
- private $reposPath = 'file:///Server/htdocs/viewsvn/reposdir';
-
- /**
- * Binary path
- * @var string
- */
- private $binaryPath = '/usr/local/bin/svn';
-
+
public function setUp()
{
- $this->fixture = new ApplicationController($this->binaryPath, $this->reposPath);
+ $this->fixture = new ApplicationController(APPLICATION_CONTROLLER_BINARY_PATH, APPLICATION_CONTROLLER_REPOS_PATH);
}
// ###################################################################
*/
public function testGetRepositoryUri()
{
- $this->assertEquals($this->reposPath, $this->fixture->getRepositoryPath(), 'Repository path is empty');
+ $this->assertEquals(APPLICATION_CONTROLLER_REPOS_PATH, $this->fixture->getRepositoryPath(), 'Repository path is empty');
$this->assertRegExp('#(.*)/$#', $this->fixture->getRepositoryPath(), 'Repository path does not end with a slash');
}
--- /dev/null
+<?php
+
+define('APPLICATION_CONTROLLER_BINARY_PATH', '/usr/local/bin/svn');
+define('APPLICATION_CONTROLLER_REPOS_PATH', 'file:///Server/htdocs/viewsvn/reposdir');
+
+?>
\ No newline at end of file