public function setUp() { $this->streamWrapperAdapter = $this->getAccessibleMock(\TYPO3\Flow\Resource\Streams\StreamWrapperAdapter::class, array('createStreamWrapper')); $this->mockStreamWrapper = $this->getMock(\TYPO3\Flow\Resource\Streams\StreamWrapperInterface::class); $this->streamWrapperAdapter->_set('streamWrapper', $this->mockStreamWrapper); }