Skip to content

Commit 9f6ceb7

Browse files
committed
Generic/InterfaceNameSuffix: cleanup existing tests
- Remove redundant tests. - Remove unnecessary whitespaces. - Use proper punctuation in a code comment. - Make some tests more descriptive by making the class name reflect what is being tested.
1 parent 8a7ee56 commit 9f6ceb7

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed
Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
11
<?php
22

3-
interface SomeNameInterface
4-
{
3+
interface SomeNameInterface {}
54

6-
}
5+
interface MissingInterfaceSuffix {} // Error.
76

8-
interface ISomeName // error
9-
{
10-
11-
}
12-
13-
interface ISomeNameInterface
14-
{
15-
16-
}
17-
18-
19-
interface ISomeOtherNameinterface
20-
{
21-
22-
}
23-
24-
interface mInterface
25-
{
26-
27-
}
7+
interface CaseOfSuffixIsNotEnforced_interFACE {}

src/Standards/Generic/Tests/NamingConventions/InterfaceNameSuffixUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class InterfaceNameSuffixUnitTest extends AbstractSniffUnitTest
2929
*/
3030
public function getErrorList()
3131
{
32-
return [8 => 1];
32+
return [5 => 1];
3333

3434
}//end getErrorList()
3535

0 commit comments

Comments
 (0)