mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +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
|
@ -57,7 +57,7 @@ class ProxyHelperTest extends TestCase
|
|||
ProxyHelper::getProxyData();
|
||||
}
|
||||
|
||||
public function dataMalformed()
|
||||
public function dataMalformed(): array
|
||||
{
|
||||
return array(
|
||||
'no-host' => array('localhost'),
|
||||
|
@ -79,7 +79,7 @@ class ProxyHelperTest extends TestCase
|
|||
$this->assertSame($expected, $httpProxy);
|
||||
}
|
||||
|
||||
public function dataFormatting()
|
||||
public function dataFormatting(): array
|
||||
{
|
||||
// url, expected
|
||||
return array(
|
||||
|
@ -104,7 +104,7 @@ class ProxyHelperTest extends TestCase
|
|||
$this->assertSame($expected, $list[$index]);
|
||||
}
|
||||
|
||||
public function dataCaseOverrides()
|
||||
public function dataCaseOverrides(): array
|
||||
{
|
||||
// server, expected, list index
|
||||
return array(
|
||||
|
@ -129,7 +129,7 @@ class ProxyHelperTest extends TestCase
|
|||
$this->assertSame($expected, $list[$index]);
|
||||
}
|
||||
|
||||
public function dataCGIOverrides()
|
||||
public function dataCGIOverrides(): array
|
||||
{
|
||||
// server, expected, list index
|
||||
return array(
|
||||
|
@ -167,7 +167,7 @@ class ProxyHelperTest extends TestCase
|
|||
$this->assertEquals($expected, ProxyHelper::getContextOptions($url));
|
||||
}
|
||||
|
||||
public function dataContextOptions()
|
||||
public function dataContextOptions(): array
|
||||
{
|
||||
// url, expected
|
||||
return array(
|
||||
|
@ -198,7 +198,7 @@ class ProxyHelperTest extends TestCase
|
|||
$this->assertEquals($expected, $options);
|
||||
}
|
||||
|
||||
public function dataRequestFullUri()
|
||||
public function dataRequestFullUri(): array
|
||||
{
|
||||
$options = array('http' => array('request_fulluri' => true));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue