/**
  * @test
  * @expectedException \TYPO3\Flow\Resource\Target\Exception
  */
 public function getPublicPersistentResourceUriThrowsExceptionIfBaseUriCantBeResolved()
 {
     $mockBootstrap = $this->getMockBuilder(Bootstrap::class)->disableOriginalConstructor()->getMock();
     $mockCommandRequestHandler = $this->getMockBuilder(CommandRequestHandler::class)->disableOriginalConstructor()->getMock();
     $mockBootstrap->expects($this->any())->method('getActiveRequestHandler')->will($this->returnValue($mockCommandRequestHandler));
     $this->inject($this->fileSystemTarget, 'bootstrap', $mockBootstrap);
     /** @var Resource|\PHPUnit_Framework_MockObject_MockObject $mockResource */
     $mockResource = $this->getMockBuilder(Resource::class)->disableOriginalConstructor()->getMock();
     $this->fileSystemTarget->getPublicStaticResourceUri($mockResource);
 }
 /**
  * @test
  * @dataProvider getPublicStaticResourceUriDataProvider
  * @param string $baseUri
  * @param string $relativePathAndFilename
  * @param string $expectedResult
  */
 public function getPublicStaticResourceUriTests($baseUri, $relativePathAndFilename, $expectedResult)
 {
     $this->inject($this->fileSystemTarget, 'baseUri', $baseUri);
     $this->assertSame($expectedResult, $this->fileSystemTarget->getPublicStaticResourceUri($relativePathAndFilename));
 }