Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Thresholds.php

function Thresholds::from

Throws

InvalidArgumentException

1 call to Thresholds::from()
CodeCoverage::generateReports in vendor/phpunit/phpunit/src/Runner/CodeCoverage.php

File

vendor/phpunit/php-code-coverage/src/Report/Thresholds.php, line 30

Class

Thresholds
@psalm-immutable

Namespace

SebastianBergmann\CodeCoverage\Report

Code

public static function from(int $lowUpperBound, int $highLowerBound) : self {
    if ($lowUpperBound > $highLowerBound) {
        throw new InvalidArgumentException('$lowUpperBound must not be larger than $highLowerBound');
    }
    return new self($lowUpperBound, $highLowerBound);
}
RSS feed
Powered by Drupal