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

Breadcrumb

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

function MockMethod::__construct

@psalm-param class-string $className @psalm-param non-empty-string $methodName @psalm-param array<int, mixed> $defaultParameterValues @psalm-param non-negative-int $numberOfParameters

File

vendor/phpunit/phpunit/src/Framework/MockObject/Generator/MockMethod.php, line 150

Class

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

Namespace

PHPUnit\Framework\MockObject\Generator

Code

private function __construct(string $className, string $methodName, bool $cloneArguments, string $modifier, string $argumentsForDeclaration, string $argumentsForCall, array $defaultParameterValues, int $numberOfParameters, Type $returnType, string $reference, bool $callOriginalMethod, bool $static, ?string $deprecation) {
    $this->className = $className;
    $this->methodName = $methodName;
    $this->cloneArguments = $cloneArguments;
    $this->modifier = $modifier;
    $this->argumentsForDeclaration = $argumentsForDeclaration;
    $this->argumentsForCall = $argumentsForCall;
    $this->defaultParameterValues = $defaultParameterValues;
    $this->numberOfParameters = $numberOfParameters;
    $this->returnType = $returnType;
    $this->reference = $reference;
    $this->callOriginalMethod = $callOriginalMethod;
    $this->static = $static;
    $this->deprecation = $deprecation;
}

API Navigation

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