/**
* @dataProvider provideCompileTests
*/
public function testCompile(string
$sourceLogicalName, string
$input, string
$expectedOutput,
$expectedDependencies) { $assetMapper =
$this->
createMock(AssetMapperInterface::
class);
$assetMapper->
expects($this->
any()) ->
method('getAsset'
) ->
willReturnCallback(function D
$path) { return match ($path) { 'foo.js.map' =>
new MappedAsset($path,
publicPathWithoutDigest: '/assets/foo.js.map',
publicPath: '/assets/foo.123456.js.map',
),
'styles/bar.css.map' =>
new MappedAsset($path,
publicPathWithoutDigest: '/assets/styles/bar.css.map',
publicPath: '/assets/styles/bar.abcd123.css.map',
),
'sourcemaps/baz.css.map' =>
new MappedAsset($path,
publicPathWithoutDigest: '/assets/sourcemaps/baz.css.map',
publicPath: '/assets/sourcemaps/baz.987fedc.css.map',
),