Merge pull request #874 from mimmi20/dependabot/composer/master/phpun… #3112
continuous-integration.yml
on: push
Matrix: Validate Project / Check composer dependencies with composer-dependency-analyser
Matrix: Validate Project / Check composer with composer-normalize
Matrix: Validate Project / Check with editorconfig-checker
Matrix: Validate Project / Lint PHP
Matrix: Validate Project / Validate markdown files
Matrix: Validate Project / Linting with overtrue/phplint
Matrix: Validate Project / Validate composer
Matrix: Validate Project / Validate yaml
Matrix: Install Project / Install Node dependencies
Matrix: Install Project / Install PHP dependencies
Matrix: Project Analysis / Run eslint
Matrix: Project Analysis / Check Coding Standards with PHP-CS-Fixer
Matrix: Project Analysis / Check Coding Standards with PHPCS
Matrix: Project Analysis / Run prettier
Matrix: Project Analysis / Checks with Rector
Matrix: Project Analysis / Static Code Analysis with PHPStan
Matrix: Project Analysis / Run stylelint
Matrix: UnitTests / Code Coverage with PHPUnit
Matrix: UnitTests / UnitTests with PHPUnit
Matrix: UnitTests / UnitTests with stryker
Matrix: UnitTests / UnitTests with vitest
Matrix: Integration Tests with PHPUnit
Unit & Integration Tests Status
0s
Annotations
6 warnings
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest):
src/Detector.php#L526
Escaped Mutant for Mutator "FalseValue":
@@ @@
}
if (is_string($platformVersion)) {
$derivatePosition = mb_strpos($platformVersion, ';');
- if ($derivatePosition !== false) {
+ if ($derivatePosition !== true) {
// the platform contains information about a derivate of the platform
$derivate = trim(mb_substr($platformVersion, $derivatePosition + 1));
$platformVersion = null;
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest):
src/Detector.php#L567
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
$this->logger->info($e);
}
}
- if (!$platformVersion instanceof VersionInterface) {
+ if (!true) {
$platformVersion = null;
}
return new Os(name: null, marketingName: null, manufacturer: new Company(type: 'unknown', name: null, brandname: null), version: $platformVersion ?? new NullVersion());
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest):
src/Loader/Data.php#L85
Escaped Mutant for Mutator "UnwrapStrReplace":
@@ @@
foreach ($files as $file) {
assert($file instanceof SplFileInfo);
$pathName = $file->getPathname();
- $filepath = str_replace('\\', '/', $pathName);
+ $filepath = $pathName;
assert(is_string($filepath));
$content = @file_get_contents($filepath);
if ($content === false) {
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest):
src/Loader/Data.php#L102
Escaped Mutant for Mutator "CastArray":
@@ @@
throw new RuntimeException(sprintf('file "%s" contains invalid json', $file), 0, $e);
}
assert($fileData instanceof stdClass);
- foreach ((array) $fileData as $key => $data) {
+ foreach ($fileData as $key => $data) {
$stringKey = (string) $key;
if (array_key_exists($stringKey, $this->items) || !$data instanceof stdClass) {
continue;
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest):
src/Loader/Data.php#L103
Escaped Mutant for Mutator "CastString":
@@ @@
}
assert($fileData instanceof stdClass);
foreach ((array) $fileData as $key => $data) {
- $stringKey = (string) $key;
+ $stringKey = $key;
if (array_key_exists($stringKey, $this->items) || !$data instanceof stdClass) {
continue;
}
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest):
src/Loader/VersionFactoryTrait.php#L77
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
$versionDetector = $factory();
assert($versionDetector instanceof VersionFactoryInterface);
try {
- if ($versionDetector instanceof VersionBuilderInterface) {
+ if (true) {
$searches = $version->search ?? [];
if (!is_array($searches)) {
$searches = [];
|