-
-
Notifications
You must be signed in to change notification settings - Fork 483
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 #2267 from WordPress/feature/isunittesttrait-bug-f…
…ix-and-performance Helpers\IsUnitTestTrait: bug fix - allow for custom test classes passed as FQN
- Loading branch information
Showing
7 changed files
with
92 additions
and
16 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
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
WordPress/Tests/Files/FileNameUnitTests/TestFiles/test-sample-custom-unit.2.inc
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,6 @@ | ||
<!-- Annotation has to be on the second line as errors are thrown on line 1 and errors on annotation lines are ignored. --> | ||
phpcs:set WordPress.Files.FileName custom_test_classes[] \My_TestClass | ||
<?php | ||
|
||
class TestSample extends My_TestClass {} | ||
/* phpcs:set WordPress.Files.FileName custom_test_classes[] */ |
8 changes: 8 additions & 0 deletions
8
WordPress/Tests/Files/FileNameUnitTests/TestFiles/test-sample-custom-unit.3.inc
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 @@ | ||
<!-- Annotation has to be on the second line as errors are thrown on line 1 and errors on annotation lines are ignored. --> | ||
phpcs:set WordPress.Files.FileName custom_test_classes[] \Plugin\Tests\My_TestClass | ||
<?php | ||
|
||
namespace Plugin\Tests; | ||
|
||
class TestSample extends My_TestClass {} | ||
/* phpcs:set WordPress.Files.FileName custom_test_classes[] */ |
6 changes: 6 additions & 0 deletions
6
WordPress/Tests/Files/FileNameUnitTests/TestFiles/test-sample-custom-unit.4.inc
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,6 @@ | ||
<!-- Annotation has to be on the second line as errors are thrown on line 1 and errors on annotation lines are ignored. --> | ||
phpcs:set WordPress.Files.FileName custom_test_classes[] \My_TestClass | ||
<?php | ||
|
||
class TestSample extends \My_TestClass {} | ||
/* phpcs:set WordPress.Files.FileName custom_test_classes[] */ |
8 changes: 8 additions & 0 deletions
8
WordPress/Tests/Files/FileNameUnitTests/TestFiles/test-sample-custom-unit.5.inc
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 @@ | ||
<!-- Annotation has to be on the second line as errors are thrown on line 1 and errors on annotation lines are ignored. --> | ||
phpcs:set WordPress.Files.FileName custom_test_classes[] \My_TestClass | ||
<?php | ||
|
||
namespace Plugin\Tests; | ||
|
||
class TestSample extends My_TestClass {} | ||
/* phpcs:set WordPress.Files.FileName custom_test_classes[] */ |