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

Breadcrumb

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

function PhptTestCase::__construct

Constructs a test case with the given filename.

@psalm-param non-empty-string $filename

Throws

Exception

File

vendor/phpunit/phpunit/src/Runner/PhptTestCase.php, line 90

Class

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

Namespace

PHPUnit\Runner

Code

public function __construct(string $filename, ?AbstractPhpProcess $phpUtil = null) {
    if (!is_file($filename)) {
        throw new FileDoesNotExistException($filename);
    }
    $this->filename = $filename;
    $this->phpUtil = $phpUtil ?: AbstractPhpProcess::factory();
}
RSS feed
Powered by Drupal