mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add void types where no return statement is present
This commit is contained in:
parent
32852304d0
commit
abdc6893a6
213 changed files with 1129 additions and 1130 deletions
|
@ -89,7 +89,7 @@ class PerforceDriverTest extends TestCase
|
|||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function overrideDriverInternalPerforce(Perforce $perforce)
|
||||
protected function overrideDriverInternalPerforce(Perforce $perforce): void
|
||||
{
|
||||
$reflectionClass = new \ReflectionClass($this->driver);
|
||||
$property = $reflectionClass->getProperty('perforce');
|
||||
|
@ -136,7 +136,7 @@ class PerforceDriverTest extends TestCase
|
|||
return $this->getMockBuilder('Composer\Util\Perforce')->disableOriginalConstructor()->getMock();
|
||||
}
|
||||
|
||||
public function testInitializeCapturesVariablesFromRepoConfig()
|
||||
public function testInitializeCapturesVariablesFromRepoConfig(): void
|
||||
{
|
||||
$driver = new PerforceDriver($this->repoConfig, $this->io, $this->config, $this->httpDownloader, $this->process);
|
||||
$driver->initialize();
|
||||
|
@ -145,7 +145,7 @@ class PerforceDriverTest extends TestCase
|
|||
$this->assertEquals(self::TEST_BRANCH, $driver->getBranch());
|
||||
}
|
||||
|
||||
public function testInitializeLogsInAndConnectsClient()
|
||||
public function testInitializeLogsInAndConnectsClient(): void
|
||||
{
|
||||
$this->perforce->expects($this->once())->method('p4Login');
|
||||
$this->perforce->expects($this->once())->method('checkStream');
|
||||
|
@ -158,7 +158,7 @@ class PerforceDriverTest extends TestCase
|
|||
* @depends testInitializeCapturesVariablesFromRepoConfig
|
||||
* @depends testInitializeLogsInAndConnectsClient
|
||||
*/
|
||||
public function testHasComposerFileReturnsFalseOnNoComposerFile()
|
||||
public function testHasComposerFileReturnsFalseOnNoComposerFile(): void
|
||||
{
|
||||
$identifier = 'TEST_IDENTIFIER';
|
||||
$formatted_depot_path = '//' . self::TEST_DEPOT . '/' . $identifier;
|
||||
|
@ -172,7 +172,7 @@ class PerforceDriverTest extends TestCase
|
|||
* @depends testInitializeCapturesVariablesFromRepoConfig
|
||||
* @depends testInitializeLogsInAndConnectsClient
|
||||
*/
|
||||
public function testHasComposerFileReturnsTrueWithOneOrMoreComposerFiles()
|
||||
public function testHasComposerFileReturnsTrueWithOneOrMoreComposerFiles(): void
|
||||
{
|
||||
$identifier = 'TEST_IDENTIFIER';
|
||||
$formatted_depot_path = '//' . self::TEST_DEPOT . '/' . $identifier;
|
||||
|
@ -189,13 +189,13 @@ class PerforceDriverTest extends TestCase
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testSupportsReturnsFalseNoDeepCheck()
|
||||
public function testSupportsReturnsFalseNoDeepCheck(): void
|
||||
{
|
||||
$this->expectOutputString('');
|
||||
$this->assertFalse(PerforceDriver::supports($this->io, $this->config, 'existing.url'));
|
||||
}
|
||||
|
||||
public function testCleanup()
|
||||
public function testCleanup(): void
|
||||
{
|
||||
$this->perforce->expects($this->once())->method('cleanupClientSpec');
|
||||
$this->driver->cleanup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue