1
0
Fork 0

Fix tests

pull/636/merge
Jordi Boggiano 2012-04-29 20:43:56 +02:00
parent 115dc407fa
commit b3164de813
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class SvnDriver extends VcsDriver
*/
public function initialize()
{
$this->url = rtrim(self::normalizeUrl($this->url), '/');
$this->url = $this->baseUrl = rtrim(self::normalizeUrl($this->url), '/');
if (false !== ($pos = strrpos($this->url, '/trunk'))) {
$this->baseUrl = substr($this->url, 0, $pos);

View File

@ -41,7 +41,7 @@ class SvnDriverTest extends \PHPUnit_Framework_TestCase
->will($this->returnValue($output));
$svn = new SvnDriver('http://till:secret@corp.svn.local/repo', $console, new Config(), $process);
$svn->getTags();
$svn->initialize();
}
private function getCmd($cmd)