소스 검색

Remove useless parentheses

Gabriel Caruso 6 년 전
부모
커밋
a17f051e29
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      tests/Composer/Test/Downloader/FileDownloaderTest.php
  2. 2 2
      tests/Composer/Test/Downloader/GitDownloaderTest.php

+ 1 - 1
tests/Composer/Test/Downloader/FileDownloaderTest.php

@@ -231,7 +231,7 @@ class FileDownloaderTest extends TestCase
             ->will($this->returnValue(array($distUrl)));
 
         $ioMock = $this->getMock('Composer\IO\IOInterface');
-        $ioMock->expects(($this->at(0)))
+        $ioMock->expects($this->at(0))
             ->method('writeError')
             ->with($this->stringContains('Downgrading'));
 

+ 2 - 2
tests/Composer/Test/Downloader/GitDownloaderTest.php

@@ -638,7 +638,7 @@ composer https://github.com/old/url (push)
             ->will($this->returnValue(0));
 
         $ioMock = $this->getMock('Composer\IO\IOInterface');
-        $ioMock->expects(($this->at(0)))
+        $ioMock->expects($this->at(0))
             ->method('writeError')
             ->with($this->stringContains('Downgrading'));
 
@@ -677,7 +677,7 @@ composer https://github.com/old/url (push)
             ->will($this->returnValue(0));
 
         $ioMock = $this->getMock('Composer\IO\IOInterface');
-        $ioMock->expects(($this->at(0)))
+        $ioMock->expects($this->at(0))
             ->method('writeError')
             ->with($this->stringContains('updating'));