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

Breadcrumb

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

function ObjectProphecy::willExtend

Forces double to extend specific class.

@template U of object @phpstan-param class-string<U> $class @phpstan-this-out static<T&U>

Parameters

string $class:

Return value

$this

File

vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php, line 74

Class

ObjectProphecy
@author Konstantin Kudryashov <ever.zet@gmail.com>

Namespace

Prophecy\Prophecy

Code

public function willExtend($class) {
    $this->lazyDouble
        ->setParentClass($class);
    return $this;
}
RSS feed
Powered by Drupal