1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Fixes from PHPStan level 0

More fixes from PHPStan level 0
This commit is contained in:
Gabriel Caruso 2018-01-06 12:05:39 -02:00
parent 994bac0c15
commit 3d262bd637
13 changed files with 18 additions and 12 deletions

View file

@ -22,6 +22,7 @@ class PerforceTest extends TestCase
{
protected $perforce;
protected $processExecutor;
protected $repoConfig;
protected $io;
const TEST_DEPOT = 'depot';
@ -224,7 +225,7 @@ class PerforceTest extends TestCase
'p4user' => 'user',
'p4password' => 'TEST_PASSWORD',
);
$this->perforce = new Perforce($repoConfig, 'port', 'path', $this->processExecutor, false, $this->getMockIOInterface(), 'TEST');
$this->perforce = new Perforce($repoConfig, 'port', 'path', $this->processExecutor, false, $this->getMockIOInterface());
$password = $this->perforce->queryP4Password();
$this->assertEquals('TEST_PASSWORD', $password);
}
@ -289,7 +290,7 @@ class PerforceTest extends TestCase
$this->assertStringStartsWith($expected, fgets($stream));
}
$this->assertFalse(fgets($stream));
} catch (Exception $e) {
} catch (\Exception $e) {
fclose($stream);
throw $e;
}
@ -310,7 +311,7 @@ class PerforceTest extends TestCase
$this->assertStringStartsWith($expected, fgets($stream));
}
$this->assertFalse(fgets($stream));
} catch (Exception $e) {
} catch (\Exception $e) {
fclose($stream);
throw $e;
}