public function ObjectProphecy::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php \Prophecy\Prophecy\ObjectProphecy::__construct()
Initializes object prophecy.
Parameters
LazyDouble $lazyDouble:
CallCenter $callCenter:
RevealerInterface $revealer:
ComparatorFactory $comparatorFactory:
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Prophecy/ ObjectProphecy.php, line 50
Class
- ObjectProphecy
- Object prophecy.
Namespace
Prophecy\ProphecyCode
public function __construct(LazyDouble $lazyDouble, CallCenter $callCenter = null, RevealerInterface $revealer = null, ComparatorFactory $comparatorFactory = null) {
$this->lazyDouble = $lazyDouble;
$this->callCenter = $callCenter ?: new CallCenter();
$this->revealer = $revealer ?: new Revealer();
$this->comparatorFactory = $comparatorFactory ?: ComparatorFactory::getInstance();
}