Skip to content

Commit

Permalink
Merge pull request #164 from localheinz/fix/file
Browse files Browse the repository at this point in the history
Fix: Remove unused test facilities related to removed file argument
  • Loading branch information
localheinz authored Jan 19, 2019
2 parents 05f0ebc + a98a36d commit 2724291
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ parameters:
classesAllowedToBeExtended:
- Composer\Command\BaseCommand
ignoreErrors:
- '#Call to deprecated method usingFileArgument\(\) of class Localheinz\\Composer\\Normalize\\Test\\Util\\CommandInvocation.#'
- '#Method Localheinz\\Composer\\Normalize\\Command\\NormalizeCommand::indentFrom\(\) has a nullable return type declaration.#'
paths:
- src
Expand Down
10 changes: 0 additions & 10 deletions test/Util/CommandInvocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ public static function inCurrentWorkingDirectory(): self
return new self('in-current-working-directory');
}

/**
* @deprecated The file argument will be removed in 2.0.0.
*
* @return CommandInvocation
*/
public static function usingFileArgument(): self
{
return new self('using-file-argument');
}

public static function usingWorkingDirectoryOption(): self
{
return new self('using-working-directory-option');
Expand Down
9 changes: 0 additions & 9 deletions test/Util/Scenario.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@ public function consoleParameters(): array
'command' => 'normalize',
];

if ($this->commandInvocation->is(CommandInvocation::usingFileArgument())) {
return \array_merge($parameters, [
'file' => \sprintf(
'%s/composer.json',
$this->initialState->directory()->path()
),
]);
}

if ($this->commandInvocation->is(CommandInvocation::usingWorkingDirectoryOption())) {
return \array_merge($parameters, [
'--working-dir' => $this->initialState->directory()->path(),
Expand Down

0 comments on commit 2724291

Please sign in to comment.