1
0
Fork 0

Changes comparsion to strict and removed a comment

pull/2329/head
Fabian Grutschus 2013-10-14 17:25:57 +02:00
parent 67083e436b
commit 0c5bd559f2
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -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);