PHPUnit_Framework_TestSuite::addTestFile
Wraps both <code>addTest()</code> and <code>addTestSuite</code> as well as the separate import statements for the user's convenience.
If the named file cannot be read or there are no new tests that can be added, a <code>PHPUnit_Framework_Warning</code> will be created instead, leaving the current test run untouched.
- Author: Stefano F. Rausch <stefano@rausch-e.net>
Signature
public function addTestFile(string
$filename,
array
$phptOptions )
Parameters
$filename
— string$phptOptions
— array- Array with ini settings for the php instance
run, key being the name if the setting,
value the ini value.
Errors/Exceptions
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
347 - 415 | CyclomaticComplexity | The method addTestFile() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. |
347 - 415 | NPathComplexity | The method addTestFile() has an NPath complexity of 288. The configured NPath complexity threshold is 200. |