You are here

public function ObjectProphecy::willImplement in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php \Prophecy\Prophecy\ObjectProphecy::willImplement()

Forces double to implement specific interface.

Parameters

string $interface:

Return value

$this

File

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

Class

ObjectProphecy
Object prophecy.

Namespace

Prophecy\Prophecy

Code

public function willImplement($interface) {
  $this->lazyDouble
    ->addInterface($interface);
  return $this;
}