PHPUnit_Framework_TestSuite::createTest
Signature
public function createTest(ReflectionClass
$theClass,
string
$name )
Parameters
$theClass
— ReflectionClass
$name
— string
Returns
- PHPUnit_Framework_Test
Errors/Exceptions
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
461 - 628 | CyclomaticComplexity | The method createTest() has a Cyclomatic Complexity of 28. The configured cyclomatic complexity threshold is 10. |
461 - 628 | NPathComplexity | The method createTest() has an NPath complexity of 15548. The configured NPath complexity threshold is 200. |
461 - 628 | ExcessiveMethodLength | The method createTest() has 168 lines of code. Current threshold is set to 100. Avoid really long methods. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
495 | 13 | error | Expected "} else {\n"; found "} // TestCase($name, $data)\n else {\n" |
502 | 134 | warning | Line exceeds 120 characters; contains 133 characters |