$this->filesystem->
mkdir($this->cacheDir
);
} protected function tearDown(): void
{ $this->filesystem->
remove($this->cacheDir
);
} public function testCreateMappedAssetCallsInsideWhenNoCache() { $factory =
$this->
createMock(MappedAssetFactoryInterface::
class);
$cachedFactory =
new CachedMappedAssetFactory( $factory,
$this->cacheDir,
true
);
$mappedAsset =
new MappedAsset('file1.css', __DIR__.'/../fixtures/dir1/file1.css'
);
$factory->
expects($this->
once()) ->
method('createMappedAsset'
) ->
with('file1.css', '/anything/file1.css'
) ->
willReturn($mappedAsset);