Enables or disables the stopping when a failure occurs.
@since Method available since Release 3.1.0
boolean $flag:
public function stopOnFailure($flag) {
if (is_bool($flag)) {
$this->stopOnFailure = $flag;
}
else {
throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
}
}