class MyTestCase extends PHPUnit_Framework_TestCase { public function __construct() { parent::__construct(); // additional constructor code } }
class MyOtherTestCase extends PHPUnit_Framework_TestCase { public function __construct($name = null, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); // additional constructor code } }In this example, we are again creating a new class called MyOtherTestCase that extends PHPUnit_Framework_TestCase. This time, we are passing in some additional parameters to the __construct method. These parameters are used by PHPUnit to determine which tests to run when the class is executed. Package Library: PHPUnit (https://phpunit.de/)