From a98a36d7e68a8ae571e47faacb1d6c8b324610fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 19 Jan 2019 10:51:35 +0100 Subject: [PATCH] Fix: Remove unused test facilities related to removed file argument --- phpstan.neon | 1 - test/Util/CommandInvocation.php | 10 ---------- test/Util/Scenario.php | 9 --------- 3 files changed, 20 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index b3022751..411ab782 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -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 diff --git a/test/Util/CommandInvocation.php b/test/Util/CommandInvocation.php index 78557697..373748fd 100644 --- a/test/Util/CommandInvocation.php +++ b/test/Util/CommandInvocation.php @@ -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'); diff --git a/test/Util/Scenario.php b/test/Util/Scenario.php index a7c78bf9..481dd3af 100644 --- a/test/Util/Scenario.php +++ b/test/Util/Scenario.php @@ -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(),