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

Breadcrumb

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

function ExcludeList::isExcluded

File

vendor/phpunit/phpunit/src/Util/ExcludeList.php, line 180

Class

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

Namespace

PHPUnit\Util

Code

public function isExcluded(string $file) : bool {
    if (!$this->enabled) {
        return false;
    }
    self::initialize();
    foreach (self::$directories as $directory) {
        if (str_starts_with($file, $directory)) {
            return true;
        }
    }
    return false;
}

API Navigation

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