瀏覽代碼

Remove useless parentheses

Gabriel Caruso 6 年之前
父節點
當前提交
a17f051e29

+ 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'));