require_once('PHPUnit2/Framework/TestCase.php');
// load piggy
+require_once('./../../framework/kernel.php');
require_once('./../../includes/ApplicationController.php');
/**
*/
public function testGetRepositoryUri()
{
- $this->assertEquals(APPLICATION_CONTROLLER_REPOS_PATH, $this->fixture->getRepositoryPath(), 'Repository path is empty');
+ $this->assertFalse(in_array($this->fixture->getRepositoryPath(), array('', '/')), 'Repository path is empty');
$this->assertRegExp('#(.*)/$#', $this->fixture->getRepositoryPath(), 'Repository path does not end with a slash');
}
*/
class ApplicationController
{
+ /**
+ * ISSO instance
+ * @var object
+ */
+ private $isso;
+
/**
* Subversion binary path
* @var string
*/
public function __construct($binaryPath, $reposPath)
{
- $this->reposPath = $reposPath;
+ $this->isso = new ISSO;
+
+ $this->reposPath = $this->isso->fetch_sourcepath($reposPath);
$this->binaryPath = $binaryPath;
}