Skip to content

Commit

Permalink
drop Codeception 4 support, php < 8.0 and symfony < 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Oct 15, 2023
1 parent 532708c commit baf1b4e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 44 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ COMPOSER=$(PHP) $(shell which composer)
# Infection
INFECTION=./.tools/infection.phar
INFECTION_URL="https://github.com/infection/infection/releases/download/0.27.4/infection.phar"
MIN_MSI=77
MIN_COVERED_MSI=80
MIN_MSI=70
MIN_COVERED_MSI=76
INFECTION_ARGS=--min-msi=$(MIN_MSI) --min-covered-msi=$(MIN_COVERED_MSI) --threads=$(JOBS) --log-verbosity=none --no-interaction --no-progress --show-mutations

all: test
Expand Down
58 changes: 16 additions & 42 deletions src/CodeceptionAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,52 +74,26 @@ final class CodeceptionAdapter implements MemoryUsageAware, TestFrameworkAdapter
'--fail-fast',
];

private string $testFrameworkExecutable;
private CommandLineBuilder $commandLineBuilder;
private VersionParser $versionParser;
private JUnitTestCaseSorter $jUnitTestCaseSorter;
private Filesystem $filesystem;
private string $jUnitFilePath;
private string $tmpDir;
private string $projectDir;

/**
* @var array<string, mixed>
*/
private array $originalConfigContentParsed;

/**
* @var string[]
*/
private array $srcDirs;
private ?string $cachedVersion = null;

/**
* @param array<string, mixed> $originalConfigContentParsed
* @param array<string> $srcDirs
*/
public function __construct(
string $testFrameworkExecutable,
CommandLineBuilder $commandLineBuilder,
VersionParser $versionParser,
JUnitTestCaseSorter $jUnitTestCaseSorter,
Filesystem $filesystem,
string $jUnitFilePath,
string $tmpDir,
string $projectDir,
array $originalConfigContentParsed,
array $srcDirs
private string $testFrameworkExecutable,
private CommandLineBuilder $commandLineBuilder,
private VersionParser $versionParser,
private JUnitTestCaseSorter $jUnitTestCaseSorter,
private Filesystem $filesystem,
private string $jUnitFilePath,
private string $tmpDir,
private string $projectDir,
/**
* @var array<string, mixed>
*/
private array $originalConfigContentParsed,
/**
* @var array<string>
*/
private array $srcDirs
) {
$this->commandLineBuilder = $commandLineBuilder;
$this->testFrameworkExecutable = $testFrameworkExecutable;
$this->versionParser = $versionParser;
$this->jUnitFilePath = $jUnitFilePath;
$this->tmpDir = $tmpDir;
$this->jUnitTestCaseSorter = $jUnitTestCaseSorter;
$this->filesystem = $filesystem;
$this->projectDir = $projectDir;
$this->originalConfigContentParsed = $originalConfigContentParsed;
$this->srcDirs = $srcDirs;
}

public function hasJUnitReport(): bool
Expand Down

0 comments on commit baf1b4e

Please sign in to comment.