public function setUp() { parent::setUp(); $this->prophecy = $this->prophesize(LoopModelMock::class); $this->model = $this->prophecy->reveal(); $this->loop = $this->createLoop($this->model); $this->fp = fopen('php://temp', 'r+'); }