By default, PHPUnit CLI only executes test classes with names that end in "Test". Name your class "TestClassX.php", for instance, and it will be skipped.

This rule raises an issue for each test class with a name not ending in "Test".

Noncompliant Code Example

class TestClassX extends PHPUnit\Framework\TestCase {  // Noncompliant

  public void testDoTheThing() {
    //...

Compliant Solution

class ClassXTest extends PHPUnit\Framework\TestCase {

  public void testDoTheThing() {
    //...