You are here

public function ObjectProphecy::willExtend 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::willExtend()

Forces double to extend specific class.

Parameters

string $class:

Return value

$this

File

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

Class

ObjectProphecy
Object prophecy.

Namespace

Prophecy\Prophecy

Code

public function willExtend($class) {
  $this->lazyDouble
    ->setParentClass($class);
  return $this;
}