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

Breadcrumb

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

function ObjectProphecy::willImplement

Forces double to implement specific interface.

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

Parameters

string $interface:

Return value

$this

File

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

Class

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

Namespace

Prophecy\Prophecy

Code

public function willImplement($interface) {
    $this->lazyDouble
        ->addInterface($interface);
    return $this;
}
RSS feed
Powered by Drupal