Skip to content

Commit

Permalink
Merge pull request #62 from Yoast/JRF/tests-class-should-be-final
Browse files Browse the repository at this point in the history
CS/QA: all test classes should be either abstract or final
  • Loading branch information
jrfnl authored Sep 23, 2023
2 parents 88ec1b8 + 1aaf094 commit 55643b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/BrainMonkey/TestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @covers \Yoast\WPTestUtils\BrainMonkey\TestCase
*/
class TestCaseTest extends TestCase {
final class TestCaseTest extends TestCase {

/**
* Verify that the basic BrainMonkey functionality has been made available.
Expand Down Expand Up @@ -273,7 +273,7 @@ public function testDoubleForUnavailableClassAllowsSettingProperties() {
'Class UnavailableClassB appears to already exist'
);

static::makeDoubleForUnavailableClass( UnavailableClassB::class );
self::makeDoubleForUnavailableClass( UnavailableClassB::class );

$unavailable_class = new UnavailableClassB();
$unavailable_class->property = 10;
Expand Down
2 changes: 1 addition & 1 deletion tests/BrainMonkey/YoastTestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @covers \Yoast\WPTestUtils\BrainMonkey\YoastTestCase
*/
class YoastTestCaseTest extends YoastTestCase {
final class YoastTestCaseTest extends YoastTestCase {

/**
* Verify the behaviour of the `get_bloginfo()` stub.
Expand Down
2 changes: 1 addition & 1 deletion tests/Helpers/ExpectOutputHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \Yoast\WPTestUtils\Helpers\ExpectOutputHelper
*/
class ExpectOutputHelperTest extends TestCase {
final class ExpectOutputHelperTest extends TestCase {

use AssertionRenames;
use AssertStringContains;
Expand Down

0 comments on commit 55643b9

Please sign in to comment.