[general] Use global date provider for doctrine timestampable (#310) #34
tests.yaml
on: push
Matrix: PHP Tests
Matrix: PHP Tests With Code Coverage
Matrix: PHP Tests For Mutants
Annotations
14 warnings
PHP Tests (8.2, ubuntu-latest) / Code Tests (PHP 8.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
PHP Tests With Code Coverage (8.2, ubuntu-latest) / Code Coverage (PHP 8.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Commands/Execute.php#L65
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public const NAME = 'fb:homekit-connector:execute';
public function __construct(private readonly Helpers\Connector $connectorHelper, private readonly DevicesModels\Configuration\Connectors\Repository $connectorsConfigurationRepository, private readonly Localization\Translator $translator, string|null $name = null)
{
- parent::__construct($name);
+
}
/**
* @throws Console\Exception\InvalidArgumentException
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Commands/Execute.php#L73
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('HomeKit connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', true)]));
+
}
/**
* @throws Console\Exception\ExceptionInterface
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Commands/Execute.php#L77
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('HomeKit connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', true)]));
+ $this->setName(self::NAME)->setDescription('HomeKit connector service')->setDefinition(new Input\InputDefinition([]));
}
/**
* @throws Console\Exception\ExceptionInterface
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Commands/Execute.php#L83
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('HomeKit connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', true)]));
+ $this->setName(self::NAME)->setDescription('HomeKit connector service')->setDefinition(new Input\InputDefinition([new Input\InputOption('connector', 'c', Input\InputOption::VALUE_OPTIONAL, 'Run devices module connector', false)]));
}
/**
* @throws Console\Exception\ExceptionInterface
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Commands/Install.php#L115
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public const NAME = 'fb:homekit-connector:install';
public function __construct(private readonly Helpers\Loader $loader, private readonly HomeKit\Logger $logger, private readonly DevicesModels\Entities\Connectors\ConnectorsRepository $connectorsRepository, private readonly DevicesModels\Entities\Connectors\ConnectorsManager $connectorsManager, private readonly DevicesModels\Entities\Connectors\Properties\PropertiesRepository $connectorsPropertiesRepository, private readonly DevicesModels\Entities\Connectors\Properties\PropertiesManager $connectorsPropertiesManager, private readonly DevicesModels\Entities\Devices\DevicesRepository $devicesRepository, private readonly DevicesModels\Entities\Devices\DevicesManager $devicesManager, private readonly DevicesModels\Entities\Devices\Properties\PropertiesRepository $devicesPropertiesRepository, private readonly DevicesModels\Entities\Devices\Properties\PropertiesManager $devicesPropertiesManager, private readonly DevicesModels\Entities\Channels\ChannelsRepository $channelsRepository, private readonly DevicesModels\Entities\Channels\ChannelsManager $channelsManager, private readonly DevicesModels\Entities\Channels\Properties\PropertiesRepository $channelsPropertiesRepository, private readonly DevicesModels\Entities\Channels\Properties\PropertiesManager $channelsPropertiesManager, private readonly ApplicationHelpers\Database $databaseHelper, private readonly Localization\Translator $translator, string|null $name = null)
{
- parent::__construct($name);
+
}
/**
* @throws Console\Exception\InvalidArgumentException
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Commands/Install.php#L123
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
protected function configure() : void
{
- $this->setName(self::NAME)->setDescription('HomeKit connector installer');
+
}
/**
* @throws ApplicationExceptions\InvalidState
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Hydrators/Channels/Channel.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
public function __construct(private readonly DevicesModels\Entities\Devices\DevicesRepository $devicesRepository, Persistence\ManagerRegistry $managerRegistry, Localization\Translator $translator, Helpers\CrudReader|null $crudReader = null)
{
- parent::__construct($managerRegistry, $translator, $crudReader);
+
}
/**
* @throws ApplicationExceptions\InvalidState
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Hydrators/Devices/Device.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
public function __construct(private readonly DevicesModels\Entities\Connectors\ConnectorsRepository $connectorsRepository, Persistence\ManagerRegistry $managerRegistry, Localization\Translator $translator, Helpers\CrudReader|null $crudReader = null)
{
- parent::__construct($managerRegistry, $translator, $crudReader);
+
}
/**
* @return class-string<Entities\Devices\Device>
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Protocol/Srp.php#L123
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
$gPadded[] = 5;
$k = Math\BigInteger::fromBytes(hash('sha512', $this->n3072->toBytes(false) . pack('C*', ...$gPadded), true), false);
$x = Math\BigInteger::fromBytes(hash('sha512', $this->salt . hash('sha512', $username . ':' . $password, true), true), false);
- $this->serverPasswordVerifier = Math\BigInteger::of(gmp_strval(gmp_powm((string) self::G, (string) $x, (string) $this->n3072)));
+ $this->serverPasswordVerifier = Math\BigInteger::of(gmp_strval(gmp_powm(self::G, (string) $x, (string) $this->n3072)));
$this->serverPublicKey = Math\BigInteger::of(gmp_strval(gmp_mod(gmp_add(gmp_mul((string) $k, (string) $this->serverPasswordVerifier), gmp_powm((string) self::G, (string) $this->serverPrivateKey, (string) $this->n3072)), (string) $this->n3072)));
}
public function getSalt() : string
|
PHP Tests For Mutants (8.2, ubuntu-latest) / Mutation Tests (PHP 8.2):
src/Protocol/Srp.php#L128
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
$k = Math\BigInteger::fromBytes(hash('sha512', $this->n3072->toBytes(false) . pack('C*', ...$gPadded), true), false);
$x = Math\BigInteger::fromBytes(hash('sha512', $this->salt . hash('sha512', $username . ':' . $password, true), true), false);
$this->serverPasswordVerifier = Math\BigInteger::of(gmp_strval(gmp_powm((string) self::G, (string) $x, (string) $this->n3072)));
- $this->serverPublicKey = Math\BigInteger::of(gmp_strval(gmp_mod(gmp_add(gmp_mul((string) $k, (string) $this->serverPasswordVerifier), gmp_powm((string) self::G, (string) $this->serverPrivateKey, (string) $this->n3072)), (string) $this->n3072)));
+ $this->serverPublicKey = Math\BigInteger::of(gmp_strval(gmp_mod(gmp_add(gmp_mul((string) $k, (string) $this->serverPasswordVerifier), gmp_powm(self::G, (string) $this->serverPrivateKey, (string) $this->n3072)), (string) $this->n3072)));
}
public function getSalt() : string
{
|
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "Logs - Mutations".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
|
5.6 MB |
|