Fix unit tests #1397
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
ci.yml
on: push
Matrix: behat-lowest-deps
Matrix: behat-symfony-next
Matrix: behat
Matrix: php-cs-fixer
Matrix: phpunit-lowest-deps
Matrix: phpunit-symfony-next
Matrix: phpunit
Annotations
10 errors and 10 warnings
|
PHP-CS-Fixer (PHP 8.4)
Process completed with exit code 8.
|
|
Behat (Symfony ^7.2) (PHP 8.4) (lowest dependencies)
The operation was canceled.
|
|
Behat (Symfony ^7.2) (PHP 8.4) (lowest dependencies)
The run was canceled by @silverbackdan.
|
|
Behat (Symfony 7.3) (PHP 8.4)
The operation was canceled.
|
|
Behat (Symfony 7.3) (PHP 8.4)
The run was canceled by @silverbackdan.
|
|
Behat (Symfony 7.3) (PHP 8.3)
The operation was canceled.
|
|
Behat (Symfony 7.3) (PHP 8.3)
The run was canceled by @silverbackdan.
|
|
Behat (Symfony NEXT 7.4) (PHP 8.4)
The operation was canceled.
|
|
Behat (Symfony NEXT 7.4) (PHP 8.4)
The run was canceled by @silverbackdan.
|
|
CI
The run was canceled by @silverbackdan.
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/Entity/User/AbstractUser.php#L203
Escaped Mutant for Mutator "IfNegation":
@@ @@
public function setPlainPassword(?string $plainPassword): self
{
$this->plainPassword = $plainPassword;
- if ($plainPassword) {
+ if (!$plainPassword) {
// Needs to update mapped field to trigger update event which will encode the plain password
$this->passwordUpdatedAt = new \DateTime();
}
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/Entity/User/AbstractUser.php#L152
Escaped Mutant for Mutator "IfNegation":
@@ @@
public function setEmailAddress(?string $emailAddress): self
{
$this->emailAddress = $emailAddress;
- if ($emailAddress) {
+ if (!$emailAddress) {
$this->emailLastUpdatedAt = new \DateTime();
}
return $this;
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L79
Escaped Mutant for Mutator "SpreadAssignment":
@@ @@
* @var Operation $oldOperation
*/
foreach ($oldOperations as $key => $oldOperation) {
- $subRoutePrefixParts = [...$routePrefixParts];
+ $subRoutePrefixParts = $routePrefixParts;
if ($currentRoutePrefix = $oldOperation->getRoutePrefix()) {
$subRoutePrefixParts[] = trim($currentRoutePrefix, '/');
$subRoutePrefix = '/' . implode('/', $subRoutePrefixParts);
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L79
Escaped Mutant for Mutator "SpreadOneItem":
@@ @@
* @var Operation $oldOperation
*/
foreach ($oldOperations as $key => $oldOperation) {
- $subRoutePrefixParts = [...$routePrefixParts];
+ $subRoutePrefixParts = [[...$routePrefixParts][0]];
if ($currentRoutePrefix = $oldOperation->getRoutePrefix()) {
$subRoutePrefixParts[] = trim($currentRoutePrefix, '/');
$subRoutePrefix = '/' . implode('/', $subRoutePrefixParts);
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L78
Escaped Mutant for Mutator "Foreach_":
@@ @@
* @var string $key
* @var Operation $oldOperation
*/
- foreach ($oldOperations as $key => $oldOperation) {
+ foreach ([] as $key => $oldOperation) {
$subRoutePrefixParts = [...$routePrefixParts];
if ($currentRoutePrefix = $oldOperation->getRoutePrefix()) {
$subRoutePrefixParts[] = trim($currentRoutePrefix, '/');
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L66
Escaped Mutant for Mutator "SpreadAssignment":
@@ @@
$resources = [];
/** @var ApiResource $resourceMetadatum */
foreach ($resourceMetadata as $i => $resourceMetadatum) {
- $finalRoutePrefixParts = [...$routePrefixParts];
+ $finalRoutePrefixParts = $routePrefixParts;
if ($currentRoutePrefix = $resourceMetadatum->getRoutePrefix()) {
$finalRoutePrefixParts[] = trim($currentRoutePrefix, '/');
}
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L66
Escaped Mutant for Mutator "SpreadOneItem":
@@ @@
$resources = [];
/** @var ApiResource $resourceMetadatum */
foreach ($resourceMetadata as $i => $resourceMetadatum) {
- $finalRoutePrefixParts = [...$routePrefixParts];
+ $finalRoutePrefixParts = [[...$routePrefixParts][0]];
if ($currentRoutePrefix = $resourceMetadatum->getRoutePrefix()) {
$finalRoutePrefixParts[] = trim($currentRoutePrefix, '/');
}
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L65
Escaped Mutant for Mutator "Foreach_":
@@ @@
{
$resources = [];
/** @var ApiResource $resourceMetadatum */
- foreach ($resourceMetadata as $i => $resourceMetadatum) {
+ foreach ([] as $i => $resourceMetadatum) {
$finalRoutePrefixParts = [...$routePrefixParts];
if ($currentRoutePrefix = $resourceMetadatum->getRoutePrefix()) {
$finalRoutePrefixParts[] = trim($currentRoutePrefix, '/');
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L49
Escaped Mutant for Mutator "IfNegation":
@@ @@
// underscores for core resources
$reflection = new \ReflectionClass($resourceClass);
$namespace = $reflection->getNamespaceName();
- if (preg_match("/Silverback\\\\ApiComponentsBundle\\\\(?!Test)[\\w]+/", $namespace)) {
+ if (!preg_match("/Silverback\\\\ApiComponentsBundle\\\\(?!Test)[\\w]+/", $namespace)) {
$routePrefixParts[] = '_';
}
}
|
|
PHPUnit (Symfony 7.3) (PHP 8.4):
src/ApiPlatform/Metadata/Resource/RoutingPrefixResourceMetadataCollectionFactory.php#L43
Escaped Mutant for Mutator "ElseIfNegation":
@@ @@
$routePrefixParts = [];
if (is_subclass_of($resourceClass, AbstractComponent::class)) {
$routePrefixParts[] = 'component';
- } elseif (is_subclass_of($resourceClass, AbstractPageData::class)) {
+ } elseif (!is_subclass_of($resourceClass, AbstractPageData::class)) {
$routePrefixParts[] = 'page_data';
} else {
// underscores for core resources
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
behat-logs-php8.3
Expired
|
222 Bytes |
sha256:bde2f1e140add8c2dc6c286aeeb2710bee2da2d865dab1f516aa72fc7c3bc0dd
|
|
|
behat-logs-php8.4
Expired
|
222 Bytes |
sha256:af3f341974f413c55b90217bf79eb7ba5de8f57c546dc03f4b4381f8582b1f8e
|
|
|
behat-logs-php8.4-lowest-deps
Expired
|
222 Bytes |
sha256:9573ed8e7abae85aa3193238d40849c1a8bacbc970e1b18da8ee242988265766
|
|
|
behat-logs-php8.4-symfony7.4
Expired
|
222 Bytes |
sha256:2a9e8891eb043df493eae9c9b0a22e08a1a2c7e16cb050f8cb3aadb2b7125bd2
|
|
|
infection-logs-php8.4
Expired
|
3.9 KB |
sha256:17e5c15c86d7cfcedd53bf519b0df59bf1bbad29593ef163475e4894697672df
|
|
|
phpunit-logs-php8.3
Expired
|
3.7 KB |
sha256:14620e0cbc81fac41651d8570d7b955cc68022309f80ee9f7b10c0f587737a60
|
|
|
phpunit-logs-php8.4
Expired
|
623 KB |
sha256:e943b4deb678e782a848af985716d9bea1f3fb5721338977e395d19c42709e74
|
|
|
phpunit-logs-php8.4-lowest-deps
Expired
|
3.7 KB |
sha256:a81cf03bb79047e73af149921740e4a20160a59cd1a344271e78ffd6140cb4c3
|
|
|
phpunit-logs-php8.4-symfony7.4
Expired
|
3.66 KB |
sha256:bab138c46a7fe2e5fe008543cffc53acd581f934a26d4a667dd1882dfbbacd77
|
|