Enables or disables the strict mode.
When active
- Tests that do not assert anything will be marked as incomplete.
- Tests that are incomplete or skipped yield no code coverage.
@since Method available since Release 3.5.2
Parameters
boolean $flag:
Throws
PHPUnit_Framework_Exception
File
- drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php, line 848
Class
- PHPUnit_Framework_TestResult
- A TestResult collects the results of executing a test case.
Code
public function strictMode($flag) {
if (is_bool($flag)) {
$this->strictMode = $flag;
}
else {
throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
}
}