PHPUnit_Framework_TestSuite::__construct
Constructs a new TestSuite:
- PHPUnit_Framework_TestSuite() constructs an empty TestSuite. - PHPUnit_Framework_TestSuite(ReflectionClass) constructs a TestSuite from the given class. - PHPUnit_Framework_TestSuite(ReflectionClass, String) constructs a TestSuite from the given class with the given name. - PHPUnit_Framework_TestSuite(String) either constructs a TestSuite from the given class (if the passed string is the name of an existing class) or constructs an empty TestSuite with the given name.
Signature
public function __construct([string
$theClass = '',
[string
$name = '']] )
Parameters
$theClass
— string$name
— string
Errors/Exceptions
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
167 - 238 | CyclomaticComplexity | The method __construct() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10. |
167 - 238 | NPathComplexity | The method __construct() has an NPath complexity of 768. The configured NPath complexity threshold is 200. |