public function ObjectProphecy::willImplement in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\ProphecyCode
public function willImplement($interface) {
$this->lazyDouble
->addInterface($interface);
return $this;
}