Use TypeSystem in AssertSameBooleanExpectedRule #496
Annotations
3 errors and 9 warnings
|
Mutation Testing (8.2, ubuntu-latest)
Process completed with exit code 1.
|
|
Mutation Testing (8.4, ubuntu-latest)
Process completed with exit code 1.
|
|
Mutation Testing (8.3, ubuntu-latest)
Process completed with exit code 1.
|
|
Mutation Testing (8.2, ubuntu-latest):
src/Rules/PHPUnit/AssertSameBooleanExpectedRule.php#L55
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
if ($expectedArgumentType->isTrue()->yes()) {
return [RuleErrorBuilder::message('You should use assertTrue() instead of assertSame() when expecting "true"')->identifier('phpunit.assertTrue')->build()];
}
- if ($expectedArgumentType->isFalse()->yes()) {
+ if (!$expectedArgumentType->isFalse()->no()) {
return [RuleErrorBuilder::message('You should use assertFalse() instead of assertSame() when expecting "false"')->identifier('phpunit.assertFalse')->build()];
}
return [];
}
}
|
|
Mutation Testing (8.2, ubuntu-latest):
src/Rules/PHPUnit/AssertSameBooleanExpectedRule.php#L49
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
if (!AssertRuleHelper::isMethodOrStaticCallOnAssert($node, $scope)) {
return [];
}
- if ($expectedArgumentType->isTrue()->yes()) {
+ if (!$expectedArgumentType->isTrue()->no()) {
return [RuleErrorBuilder::message('You should use assertTrue() instead of assertSame() when expecting "true"')->identifier('phpunit.assertTrue')->build()];
}
if ($expectedArgumentType->isFalse()->yes()) {
|
|
Mutation Testing (8.2, ubuntu-latest)
Unexpected input(s) 'extensions', valid inputs are ['php-version', 'php-extensions']
|
|
Mutation Testing (8.4, ubuntu-latest):
src/Rules/PHPUnit/AssertSameBooleanExpectedRule.php#L55
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
if ($expectedArgumentType->isTrue()->yes()) {
return [RuleErrorBuilder::message('You should use assertTrue() instead of assertSame() when expecting "true"')->identifier('phpunit.assertTrue')->build()];
}
- if ($expectedArgumentType->isFalse()->yes()) {
+ if (!$expectedArgumentType->isFalse()->no()) {
return [RuleErrorBuilder::message('You should use assertFalse() instead of assertSame() when expecting "false"')->identifier('phpunit.assertFalse')->build()];
}
return [];
}
}
|
|
Mutation Testing (8.4, ubuntu-latest):
src/Rules/PHPUnit/AssertSameBooleanExpectedRule.php#L49
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
if (!AssertRuleHelper::isMethodOrStaticCallOnAssert($node, $scope)) {
return [];
}
- if ($expectedArgumentType->isTrue()->yes()) {
+ if (!$expectedArgumentType->isTrue()->no()) {
return [RuleErrorBuilder::message('You should use assertTrue() instead of assertSame() when expecting "true"')->identifier('phpunit.assertTrue')->build()];
}
if ($expectedArgumentType->isFalse()->yes()) {
|
|
Mutation Testing (8.4, ubuntu-latest)
Unexpected input(s) 'extensions', valid inputs are ['php-version', 'php-extensions']
|
|
Mutation Testing (8.3, ubuntu-latest):
src/Rules/PHPUnit/AssertSameBooleanExpectedRule.php#L55
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
if ($expectedArgumentType->isTrue()->yes()) {
return [RuleErrorBuilder::message('You should use assertTrue() instead of assertSame() when expecting "true"')->identifier('phpunit.assertTrue')->build()];
}
- if ($expectedArgumentType->isFalse()->yes()) {
+ if (!$expectedArgumentType->isFalse()->no()) {
return [RuleErrorBuilder::message('You should use assertFalse() instead of assertSame() when expecting "false"')->identifier('phpunit.assertFalse')->build()];
}
return [];
}
}
|
|
Mutation Testing (8.3, ubuntu-latest):
src/Rules/PHPUnit/AssertSameBooleanExpectedRule.php#L49
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
if (!AssertRuleHelper::isMethodOrStaticCallOnAssert($node, $scope)) {
return [];
}
- if ($expectedArgumentType->isTrue()->yes()) {
+ if (!$expectedArgumentType->isTrue()->no()) {
return [RuleErrorBuilder::message('You should use assertTrue() instead of assertSame() when expecting "true"')->identifier('phpunit.assertTrue')->build()];
}
if ($expectedArgumentType->isFalse()->yes()) {
|
|
Mutation Testing (8.3, ubuntu-latest)
Unexpected input(s) 'extensions', valid inputs are ['php-version', 'php-extensions']
|