Skip to content

Upgrading phpunit/phpcov 7 to 8

Breaking7.0.2 → 8.2.1Breaking1New3Fixed1

BreakingUpgrade verdict

1 breaking change.

  • The command-line option for choosing which files to cover has a new name, so scripts using the old name must be updated.
1 item needs code or config changes

PHP requirement changed in 8.2.0: ^7.3 → >=7.3.

Adds phpunit/php-file-iterator ^3.0, sebastian/cli-parser ^1.0.

Drops sebastian/finder-facade, symfony/console.

Moves phpunit/php-code-coverage ^8.0 → ^9.2, phpunit/phpunit ^9.0 → ^9.3. Your build may pick other versions.

Breaking1
Renames the --whitelist option to --include.
--whitelist--include

Generated by DepDelta from published PHP source. Not mixed with prose notes.

  • removed: abstract class BaseCommand extends AbstractCommand
  • removed: constructor Application()
  • removed: method Application.doRun(InputInterface $input, OutputInterface $output)
  • removed: protected method BaseCommand.handleConfiguration(CodeCoverage $coverage, InputInterface $input): void
  • removed: protected method BaseCommand.handleFilter(CodeCoverage $coverage, InputInterface $input): void
  • removed: protected method BaseCommand.handleReports(CodeCoverage $coverage, InputInterface $input, OutputInterface $output): void
  • removed: protected method ExecuteCommand.configure(): void
  • removed: protected method ExecuteCommand.execute(InputInterface $input, OutputInterface $output)
  • removed: protected method MergeCommand.configure(): void
  • removed: protected method MergeCommand.execute(InputInterface $input, OutputInterface $output)
  • removed: protected method MergeCommand.outputMergeErrors(OutputInterface $output): void
  • removed: protected method PatchCoverageCommand.configure(): void
  • removed: protected method PatchCoverageCommand.execute(InputInterface $input, OutputInterface $output)
  • removed: protected property MergeCommand.mergeErrors
  • changed: class Application extends AbstractApplication → final class Application
  • changed: class ExecuteCommand extends BaseCommand → final class ExecuteCommand extends Command
  • changed: class MergeCommand extends BaseCommand → final class MergeCommand extends Command
  • changed: class PatchCoverage → final class PatchCoverage
  • changed: class PatchCoverageCommand extends AbstractCommand → final class PatchCoverageCommand extends Command
  • changed: method PatchCoverage.execute($coverage, $patch, $prefix) → method PatchCoverage.execute(string $coverageFile, string $patchFile, string $pathPrefix): array
  • added: abstract class Command
  • added: constructor Arguments(?string $command, ?string $script, ?string $directory, ?string $coverage, ?string $patch, ?string $configuration, array $include, bool $pathCoverage, bool $addUncovered, bool $processUncovered, ?string $clover, ?string $cobertura, ?string $crap4j, ?string $html, ?string $php, ?string $text, ?string $xml, ?string $pathPrefix, bool $help, bool $version)
  • added: constructor RequiredArgumentMissingException(string $argument)
  • added: final class Arguments
  • added: final class ArgumentsBuilder
  • added: final class ArgumentsBuilderException extends RuntimeException implements Exception
  • added: final class HelpCommand extends Command
  • added: final class RequiredArgumentMissingException extends RuntimeException implements Exception
  • added: interface Exception
  • added: method Application.run(array $argv): int
  • added: method Arguments.addUncovered(): bool
  • added: method Arguments.clover(): ?string
  • added: method Arguments.cobertura(): ?string
  • added: method Arguments.command(): ?string
  • added: method Arguments.configuration(): ?string
  • added: method Arguments.coverage(): ?string
  • added: method Arguments.crap4j(): ?string
  • added: method Arguments.directory(): ?string
  • added: method Arguments.help(): bool
  • added: method Arguments.html(): ?string
  • added: method Arguments.include(): array
  • added: method Arguments.patch(): ?string
  • added: method Arguments.pathCoverage(): bool
  • added: method Arguments.pathPrefix(): ?string
  • added: method Arguments.php(): ?string
  • added: method Arguments.processUncovered(): bool
  • added: method Arguments.reportConfigured(): bool
  • added: method Arguments.script(): ?string
  • added: method Arguments.text(): ?string
  • added: method Arguments.version(): bool
  • added: method Arguments.xml(): ?string
  • added: method ArgumentsBuilder.build(array $argv): Arguments
  • added: method Command.run(Arguments $arguments): int
  • added: method ExecuteCommand.run(Arguments $arguments): int
  • added: method HelpCommand.run(Arguments $arguments): int
  • added: method MergeCommand.run(Arguments $arguments): int
  • added: method PatchCoverageCommand.run(Arguments $arguments): int
  • added: protected method Command.handleConfiguration(CodeCoverage $coverage, Arguments $arguments): void
  • added: protected method Command.handleFilter(CodeCoverage $coverage, Arguments $arguments): void
  • added: protected method Command.handleReports(CodeCoverage $coverage, Arguments $arguments): void