1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Fix tests from #10985

This commit is contained in:
Jordi Boggiano 2022-08-16 11:25:15 +02:00
parent 598c1c7573
commit f2141dd3ea
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC

View file

@ -346,7 +346,7 @@ class GitHubDriverTest extends TestCase
* @param string $url * @param string $url
* @return void * @return void
*/ */
public function testInitializeInvalidReoUrl($url) public function testInitializeInvalidRepoUrl($url)
{ {
$this->setExpectedException('\InvalidArgumentException'); $this->setExpectedException('\InvalidArgumentException');
@ -364,14 +364,14 @@ class GitHubDriverTest extends TestCase
} }
/** /**
* @return list<array{bool, string}> * @return list<array{string}>
*/ */
public function invalidUrlProvider() public function invalidUrlProvider()
{ {
return array( return array(
array(false, 'https://github.com/acme'), array('https://github.com/acme'),
array(false, 'https://github.com/acme/repository/releases'), array('https://github.com/acme/repository/releases'),
array(false, 'https://github.com/acme/repository/pulls'), array('https://github.com/acme/repository/pulls'),
); );
} }