mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Add return types to tests (#10)
This commit is contained in:
parent
1321bfca36
commit
e9b60580f5
62 changed files with 153 additions and 155 deletions
|
@ -80,7 +80,7 @@ class ProcessExecutorTest extends TestCase
|
|||
$this->assertEquals('Executing command (CWD): ' . $expectedCommandOutput, trim($buffer->getOutput()));
|
||||
}
|
||||
|
||||
public function hidePasswordProvider()
|
||||
public function hidePasswordProvider(): array
|
||||
{
|
||||
return array(
|
||||
array('echo https://foo:bar@example.org/', 'echo https://foo:***@example.org/'),
|
||||
|
@ -151,7 +151,7 @@ class ProcessExecutorTest extends TestCase
|
|||
* Each named test is an array of:
|
||||
* argument, win-expected, unix-expected
|
||||
*/
|
||||
public function dataEscapeArguments()
|
||||
public function dataEscapeArguments(): array
|
||||
{
|
||||
return array(
|
||||
// empty argument - must be quoted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue