From e0150326151c328b50140061627f5ea77e06a225 Mon Sep 17 00:00:00 2001 From: till Date: Thu, 22 Mar 2012 17:17:55 +0100 Subject: [PATCH] remove old tests --- .../Test/Repository/Vcs/SvnDriverTest.php | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/tests/Composer/Test/Repository/Vcs/SvnDriverTest.php b/tests/Composer/Test/Repository/Vcs/SvnDriverTest.php index 9c11330b0..9e85c5129 100644 --- a/tests/Composer/Test/Repository/Vcs/SvnDriverTest.php +++ b/tests/Composer/Test/Repository/Vcs/SvnDriverTest.php @@ -20,35 +20,6 @@ use Composer\IO\NullIO; */ class SvnDriverTest extends \PHPUnit_Framework_TestCase { - /** - * Provide some examples for {@self::testCredentials()}. - * - * @return array - */ - public function urlProvider() - { - return array( - array('http://till:test@svn.example.org/', $this->getCmd(" --no-auth-cache --username 'till' --password 'test' ")), - array('http://svn.apache.org/', ''), - array('svn://johndoe@example.org', $this->getCmd(" --no-auth-cache --username 'johndoe' --password '' ")), - ); - } - - /** - * Test the credential string. - * - * @param string $url The SVN url. - * @param string $expect The expectation for the test. - * - * @dataProvider urlProvider - */ - public function testCredentials($url, $expect) - { - $svn = new SvnDriver($url, new NullIO); - - $this->assertEquals($expect, $svn->getSvnCredentialString()); - } - /** * Test the execute method. */ @@ -74,19 +45,6 @@ class SvnDriverTest extends \PHPUnit_Framework_TestCase $svn->execute('svn ls', 'http://corp.svn.local/repo'); } - public function testInteractiveString() - { - $url = 'http://svn.example.org'; - - $io = new \Composer\IO\NullIO; // non-interactive by design - $svn = new SvnDriver($url, $io); - - $this->assertEquals( - "svn ls --non-interactive 'http://svn.example.org'", - $svn->getSvnCommand('svn ls', $url) - ); - } - private function getCmd($cmd) { if (defined('PHP_WINDOWS_VERSION_BUILD')) {