소스 검색

* basic testcase

till 13 년 전
부모
커밋
953de35a0b
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      tests/Composer/Test/Repository/Vcs/SvnDriverTest.php

+ 8 - 1
tests/Composer/Test/Repository/Vcs/SvnDriverTest.php

@@ -47,7 +47,14 @@ class SvnDriverTest extends \PHPUnit_Framework_TestCase
 
     public function testInteractiveString()
     {
+        $url = 'http://svn.example.org';
+
         $io  = new \Composer\IO\NullIO; // non-interactive by design
-        $svn = new SvnDriver('http://svn.example.org', $io);
+        $svn = new SvnDriver($url, $io);
+
+        $this->assertEquals(
+            "svn ls --non-interactive  'http://svn.example.org'",
+            $svn->getSvnCommand('svn ls', $url)
+        );
     }
 }