function ObjectProphecy::__construct
Parameters
LazyDouble<T> $lazyDouble:
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Prophecy/ ObjectProphecy.php, line 50
Class
- ObjectProphecy
- @author Konstantin Kudryashov <ever.zet@gmail.com>
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 ?: FactoryProvider::getInstance();
}