PhpBench\Tests\Unit\Formatter\FormatterTest::testApplyClassesSubstituteTokens PHP Метод

testApplyClassesSubstituteTokens() публичный Метод

It should substitute tokens in class parameters.
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);
    }