mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Merge branch 'master' into 2.0
This commit is contained in:
commit
9cab8c10cc
8 changed files with 83 additions and 24 deletions
|
@ -191,6 +191,11 @@ class GitHubDriverTest extends TestCase
|
|||
->with($this->equalTo($url = 'https://api.github.com/repos/composer/packagist/commits/feature%2F3.2-foo'))
|
||||
->will($this->returnValue(new Response(array('url' => $url), 200, array(), '{"commit": {"committer":{ "date": "2012-09-10"}}}')));
|
||||
|
||||
$httpDownloader->expects($this->at(3))
|
||||
->method('get')
|
||||
->with($this->equalTo($url = 'https://api.github.com/repos/composer/packagist/contents/.github/FUNDING.yml'))
|
||||
->will($this->returnValue(new Response(array('url' => $url), 200, array(), '{"encoding": "base64", "content": "'.base64_encode("custom: https://example.com").'"}')));
|
||||
|
||||
$repoConfig = array(
|
||||
'url' => $repoUrl,
|
||||
);
|
||||
|
@ -257,6 +262,11 @@ class GitHubDriverTest extends TestCase
|
|||
->with($this->equalTo($url = 'https://api.github.com/repos/composer/packagist/commits/'.$sha))
|
||||
->will($this->returnValue(new Response(array('url' => $url), 200, array(), '{"commit": {"committer":{ "date": "2012-09-10"}}}')));
|
||||
|
||||
$httpDownloader->expects($this->at(3))
|
||||
->method('get')
|
||||
->with($this->equalTo($url = 'https://api.github.com/repos/composer/packagist/contents/.github/FUNDING.yml'))
|
||||
->will($this->returnValue(new Response(array('url' => $url), 200, array(), '{"encoding": "base64", "content": "'.base64_encode("custom: https://example.com").'"}')));
|
||||
|
||||
$repoConfig = array(
|
||||
'url' => $repoUrl,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue