/**
* Tests the twig calls to the Attribute.
* @dataProvider providerTestAttributeClassHelpers
*
* @covers ::removeClass
* @covers ::addClass
*/
public function testTwigAddRemoveClasses($template,
$expected,
$seed_attributes =
[]) { $loader =
new StringLoader();
$twig =
new Environment($loader);
$data =
['attributes' =>
new Attribute($seed_attributes)];
$result =
$twig->
createTemplate($template)->
render($data);
$this->
assertEquals($expected,
$result);
} /**
* Provides tests data for testEscaping.
*
* @return array
* An array of test data each containing of a twig template string,
* a resulting string of classes and an optional array of attributes.
*/