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

Breadcrumb

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

function ExecutionOrderDependency::__construct

File

vendor/phpunit/phpunit/src/Framework/ExecutionOrderDependency.php, line 139

Class

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

Namespace

PHPUnit\Framework

Code

public function __construct(string $classOrCallableName, ?string $methodName = null, bool $deepClone = false, bool $shallowClone = false) {
    $this->deepClone = $deepClone;
    $this->shallowClone = $shallowClone;
    if ($classOrCallableName === '') {
        return;
    }
    if (str_contains($classOrCallableName, '::')) {
        [
            $this->className,
            $this->methodName,
        ] = explode('::', $classOrCallableName);
    }
    else {
        $this->className = $classOrCallableName;
        $this->methodName = !empty($methodName) ? $methodName : 'class';
    }
}
RSS feed
Powered by Drupal