Skip to content

Commit

Permalink
Remove composer dependency (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Apr 26, 2024
1 parent ec8a9b4 commit 5e639e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"ext-json": "*",
"bitbucket/client": "^3",
"composer/composer": "^1||^2",
"composer/semver": "^3.4",
"guzzlehttp/guzzle": "^7.4",
"http-interop/http-factory-guzzle": "^1.1",
"knplabs/github-api": "^3.0",
Expand Down
15 changes: 0 additions & 15 deletions test/integration/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace eiriksm\CosyComposerTest\integration;

use Composer\Console\Application;
use eiriksm\ArrayOutput\ArrayOutput;
use eiriksm\CosyComposer\CosyComposer;
use eiriksm\CosyComposer\ProviderFactory;
use eiriksm\CosyComposer\Providers\Github;
Expand Down Expand Up @@ -149,19 +147,6 @@ protected function getMockDefinition()
return $mock_definition;
}

protected function getMockApp($mock_definition)
{
$mock_app = $this->createMock(Application::class);
$mock_app->method('getDefinition')
->willReturn($mock_definition);
$mock_app->method('run')
->willReturnCallback(function ($input) {
self::assertEquals($this->usesDirect, $input->getParameterOption('--direct'));
return 0;
});
return $mock_app;
}

protected function getMockProvider()
{
if (!$this->mockProvider) {
Expand Down

0 comments on commit 5e639e8

Please sign in to comment.