Skip to content

Commit 97e14f0

Browse files
committed
cs
1 parent 999b8a7 commit 97e14f0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rules/PHPUnit100/Rector/MethodCall/PropertyExistsWithoutAssertRector.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,17 @@ public function __construct(
4343
public function getRuleDefinition(): RuleDefinition
4444
{
4545
return new RuleDefinition(
46-
'Replace removed assertClassHasStaticAttribute, classHasStaticAttribute and assertClassNotHasStaticAttribute with property_exists()',
46+
'Replace removed assertClassHas*Attribute() with property_exists()',
4747
[
4848
new CodeSample(
4949
<<<'CODE_SAMPLE'
50+
$this->assertClassHasAttribute("Class", "property");
5051
$this->assertClassHasStaticAttribute("Class", "property");
51-
$this->classHasStaticAttribute("Class", "property");
52-
$this->assertClassNotHasStaticAttribute("Class", "property");
5352
CODE_SAMPLE
5453
,
5554
<<<'CODE_SAMPLE'
5655
$this->assertTrue(property_exists("Class", "property"));
5756
$this->assertTrue(property_exists("Class", "property"));
58-
$this->assertFalse(property_exists("Class", "property"));
5957
CODE_SAMPLE
6058
),
6159
]

0 commit comments

Comments
 (0)