Skip to content

Commit 937b55a

Browse files
committed
Generic/TraitNameSuffix: cleanup existing tests
- Remove redundant tests. - Use proper punctuation in code comments. - Make some tests more descriptive by making the trait name reflect what is being tested.
1 parent 8a7ee56 commit 937b55a

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
<?php
22

3-
trait BadName {} // error
3+
trait MissingTraitSuffix {} // Error.
44

55
trait GoodTrait {}
66

7-
trait GoodTraitTrait {}
8-
9-
trait BadTraitName {} // error
10-
11-
trait BadTraitNametrait {}
12-
13-
trait NormalTraitNameTrait {}
7+
trait SuffixCaseIsNotEnforced_tRaIt {}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public function getErrorList()
3131
{
3232
return [
3333
3 => 1,
34-
9 => 1,
3534
];
3635

3736
}//end getErrorList()

0 commit comments

Comments
 (0)