Changes comparsion to strict and removed a comment
parent
67083e436b
commit
0c5bd559f2
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue