1
0
Fork 0

remove old tests

pull/410/head
till 2012-03-22 17:17:55 +01:00
parent cd2c6dc5d2
commit e015032615
1 changed files with 0 additions and 42 deletions

View File

@ -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')) {