protected function setUp() { $this->factory = $this->prophesize(TaskBuilderFactoryInterface::class); $this->taskRepository = $this->prophesize(TaskRepositoryInterface::class); $this->taskExecutionRepository = $this->prophesize(TaskExecutionRepositoryInterface::class); $this->eventDispatcher = $this->prophesize(EventDispatcherInterface::class); $this->taskScheduler = new TaskScheduler($this->factory->reveal(), $this->taskRepository->reveal(), $this->taskExecutionRepository->reveal(), $this->eventDispatcher->reveal()); }