Skip to content

Commit b2702f1

Browse files
committed
Generic/AbstractClassNamePrefix: improve code coverage
1 parent b123501 commit b2702f1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/Standards/Generic/Tests/NamingConventions/AbstractClassNamePrefixUnitTest.1.inc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,10 @@ class NameAbstractBar {}
5656
abstract class abstractOkName
5757
{
5858

59-
}
59+
}
60+
61+
final class FinalClassShouldNotTriggerWarning {}
62+
63+
class ChildClassShouldNotTriggerWarning extends AbstractClassName {}
64+
65+
class ClassImplementingInterfaceShouldNotTriggerWarning implements InterfaceName {}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
// Intentional parse error (no class name).
4+
// This should be the only test in this file.
5+
// Testing that the sniff is *not* triggered.
6+
7+
abstract class

0 commit comments

Comments
 (0)