Browse Source

remove old tests

till 13 years ago
parent
commit
e015032615
1 changed files with 0 additions and 42 deletions
  1. 0 42
      tests/Composer/Test/Repository/Vcs/SvnDriverTest.php

+ 0 - 42
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')) {