Browse Source

Changes comparsion to strict and removed a comment

Fabian Grutschus 11 years ago
parent
commit
0c5bd559f2
2 changed files with 1 additions and 2 deletions
  1. 1 1
      src/Composer/Util/Perforce.php
  2. 0 1
      tests/Composer/Test/Util/PerforceTest.php

+ 1 - 1
src/Composer/Util/Perforce.php

@@ -370,7 +370,7 @@ class Perforce
         $result = '';
         $exitCode = $processExecutor->execute('p4 -p ' . $url . ' info -s', $result);
 
-        return false === strpos($result, 'error') && 0 == $exitCode;
+        return false === strpos($result, 'error') && 0 === $exitCode;
     }
 
     public function getComposerInformation($identifier)

+ 0 - 1
tests/Composer/Test/Util/PerforceTest.php

@@ -646,7 +646,6 @@ class PerforceTest extends \PHPUnit_Framework_TestCase
         $expectedCommand = 'p4 -p perforce.does.exist:port info -s';
         $processExecutor->expects($this->at(0))
             ->method('execute')
-            //->with($this->equalTo($expectedCommand), $this->equalTo(null))
             ->will($this->returnValue(127));
         
         $result = $this->perforce->checkServerExists('perforce.does.exist:port', $processExecutor);