From b3164de813204dc66c4750fba017e600a6786330 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 29 Apr 2012 20:43:56 +0200 Subject: [PATCH] Fix tests --- src/Composer/Repository/Vcs/SvnDriver.php | 2 +- tests/Composer/Test/Repository/Vcs/SvnDriverTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index d431cb288..7b2b5cea7 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/src/Composer/Repository/Vcs/SvnDriver.php @@ -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); diff --git a/tests/Composer/Test/Repository/Vcs/SvnDriverTest.php b/tests/Composer/Test/Repository/Vcs/SvnDriverTest.php index 6f85faa0c..569fab69f 100644 --- a/tests/Composer/Test/Repository/Vcs/SvnDriverTest.php +++ b/tests/Composer/Test/Repository/Vcs/SvnDriverTest.php @@ -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)