There's no point in having a PHPUnit test case without any test methods. Similarly, you shouldn't have a file in the tests directory which extends PHPUnit\Framework\TestCase but no tests in the file. Doing either of these things may lead someone to think that uncovered classes have been tested. Add some test method or make the class abstract if it is used by a real test case class.

== Noncompliant Code Example

----
use PHPUnit\Framework\TestCase;

class MyTest extends TestCase {

  protected function setUp() {
    doSomethind();
  }


  private function doSomethind() {
    //...
  }
}
----

== Compliant Solution

----
use PHPUnit\Framework\TestCase;

class MyTest extends TestCase {

  public function testBehaviour() {
   //...
  }

  //...
} 

// or

abstract class MyAbstractTest extends TestCase {

 protected function setUp() {
   doSomethind();
 }


 private function doSomethind() {
   //...
 }
}
----

ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)

include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]
