class ChainedPlaceholderStrategyTest extends UnitTestCase
{ /**
* @covers ::addPlaceholderStrategy
* @covers ::processPlaceholders
*
* @dataProvider providerProcessPlaceholders
*/
public function testProcessPlaceholders($strategies,
$placeholders,
$result) { $chained_placeholder_strategy =
new ChainedPlaceholderStrategy();
foreach ($strategies as $strategy) { $chained_placeholder_strategy->
addPlaceholderStrategy($strategy);
} $this->
assertEquals($result,
$chained_placeholder_strategy->
processPlaceholders($placeholders));
} /**
* Provides a list of render strategies, placeholders and results.
*
* @return array
*/