mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix strict type issues
This commit is contained in:
parent
b85e0eebc1
commit
3cdca37e85
24 changed files with 76 additions and 61 deletions
|
@ -52,18 +52,16 @@ class GitLabDriverTest extends TestCase
|
|||
public function setUp(): void
|
||||
{
|
||||
$this->home = $this->getUniqueTmpDirectory();
|
||||
$this->config = new Config();
|
||||
$this->config->merge(array(
|
||||
'config' => array(
|
||||
'home' => $this->home,
|
||||
'gitlab-domains' => array(
|
||||
'mycompany.com/gitlab',
|
||||
'gitlab.mycompany.com',
|
||||
'othercompany.com/nested/gitlab',
|
||||
'gitlab.com',
|
||||
),
|
||||
$this->config = $this->getConfig([
|
||||
'home' => $this->home,
|
||||
'gitlab-domains' => array(
|
||||
'mycompany.com/gitlab',
|
||||
'gitlab.mycompany.com',
|
||||
'othercompany.com/nested/gitlab',
|
||||
'gitlab.com',
|
||||
'gitlab.mycompany.local',
|
||||
),
|
||||
));
|
||||
]);
|
||||
|
||||
$this->io = $this->getMockBuilder('Composer\IO\IOInterface')->disableOriginalConstructor()->getMock();
|
||||
$this->process = $this->getMockBuilder('Composer\Util\ProcessExecutor')->getMock();
|
||||
|
@ -593,7 +591,7 @@ JSON;
|
|||
JSON;
|
||||
|
||||
$this->httpDownloader->expects(
|
||||
[['url' => 'https:///api/v4/projects/%2Fmyproject', 'body' => $projectData]],
|
||||
[['url' => 'https://gitlab.mycompany.local/api/v4/projects/mygroup%2Fmyproject', 'body' => $projectData]],
|
||||
true
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue