public testApplyClassesSubstituteTokens ( $classParams, $params, $expectedParams ) |
public function testApplyClassesSubstituteTokens($classParams, $params, $expectedParams)
{
$this->registry->get('formatter_1')->willReturn($this->format->reveal());
$this->formatter->registerClasses(['one' => [['formatter_1', $classParams]]]);
$this->format->getDefaultOptions()->willReturn(['option_1' => 'value_x', 'option_2' => 'arg']);
$this->format->format('hello world', $expectedParams)->willReturn('hai!');
$this->formatter->applyClasses(['one'], 'hello world', $params);
}