public function setUp() { $this->blobRestProxy = $this->prophesize(BlobRestProxy::class); $this->flashMessageQueue = $this->prophesize(FlashMessageQueue::class); $this->flashMessageService = $this->prophesize(FlashMessageService::class); $this->storageDriver = new BlobStorageDriver(['containerName' => 'mycontainer', 'accountKey' => '123', 'accountName' => 'foo', 'defaultEndpointsProtocol' => 'http']); $this->storageDriver->setMessageQueueByIdentifier($this->flashMessageQueue->reveal()); $this->storageDriver->setFlashMessageService($this->flashMessageService->reveal()); $this->storageDriver->initialize($this->blobRestProxy->reveal()); // file stuff vfsStreamWrapper::register(); $root = new vfsStreamDirectory('exampleDir'); vfsStreamWrapper::setRoot($root); $this->testFile = vfsStream::newFile('test.txt')->at($root)->setContent($this->testContent); $this->emptyTestFile = vfsStream::newFile('test2.txt')->at($root)->setContent(''); $this->testFilePath = vfsStream::url('exampleDir/test.txt'); $this->emptyTestFilePath = vfsStream::url('exampleDir/test2.txt'); }