-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #257 from JeroenDeDauw/CamelTest
Add option to allow having an undercore in test methods
- Loading branch information
Showing
6 changed files
with
124 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...CamelCaseMethodName/testRuleAppliesToTestMethodWithTwoUnderscoresEvenWhenOneIsAllowed.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
class testRuleAppliesToTestMethodWithTwoUnderscoresEvenWhenOneIsAllowed | ||
{ | ||
public function testGivenSomeValue_expectSome_niceResult() | ||
{ | ||
|
||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ersial/CamelCaseMethodName/testRuleAppliesToTestMethodWithUnderscoreFollowedByCapital.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
class testRuleAppliesToTestMethodWithUnderscoreFollowedByCapital | ||
{ | ||
public function testGivenSomeValue_ExpectSomeResult() | ||
{ | ||
|
||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ersial/CamelCaseMethodName/testRuleDoesApplyForTestMethodWithUnderscoreWhenNotAllowed.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
class testRuleDoesApplyForTestMethodWithUnderscoreWhenNotAllowed | ||
{ | ||
public function testGivenSomeValue_expectSomeResult() | ||
{ | ||
|
||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ersial/CamelCaseMethodName/testRuleDoesNotApplyForTestMethodWithUnderscoreWhenAllowed.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
class testRuleDoesNotApplyForTestMethodWithUnderscoreWhenAllowed | ||
{ | ||
public function testGivenSomeValue_expectSomeResult() | ||
{ | ||
|
||
} | ||
} |