$build =
$icon_builder->
build($icon_map);
$output =
(string) $renderer->
executeInRenderContext(new RenderContext(),
function D
) use ($build,
$renderer) { return $renderer->
render($build);
});
$this->
assertSame($expected,
$output);
} public function providerTestBuild() { $data =
[];
$data['empty'
][] =
(new SvgIconBuilder());
$data['empty'
][] =
[];
$data['empty'
][] = <<<'EOD'
<svg width="125" height="150" class="layout-icon"></svg>
EOD;
$data['two_column'
][] =
(new SvgIconBuilder()) ->
setId('two_column'
) ->
setLabel('Two Column'
) ->
setWidth(250
) ->
setHeight(300
)