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

Breadcrumb

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

function ResultCacheHandler::duration

Throws

\PHPUnit\Event\InvalidArgumentException

InvalidArgumentException

2 calls to ResultCacheHandler::duration()
ResultCacheHandler::testFinished in vendor/phpunit/phpunit/src/Runner/ResultCache/ResultCacheHandler.php
ResultCacheHandler::testSkipped in vendor/phpunit/phpunit/src/Runner/ResultCache/ResultCacheHandler.php

File

vendor/phpunit/phpunit/src/Runner/ResultCache/ResultCacheHandler.php, line 130

Class

ResultCacheHandler
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Runner\ResultCache

Code

private function duration(Event $event) : float {
    if ($this->time === null) {
        return 0.0;
    }
    return round($event->telemetryInfo()
        ->time()
        ->duration($this->time)
        ->asFloat(), 3);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal