spec\Crummy\Phlack\Common\Formatter\FormatterCollectionSpec::its_format_is_a_composite_of_all_internal_formatters PHP Метод

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

    public function its_format_is_a_composite_of_all_internal_formatters($linker, $encoder)
    {
        $text = 'Hello, <@U1|user>. Do you like fun & [games](http://example.com)?';
        $after_linker = 'Hello, <@U1|user>. Do you like fun & <http://example.com|games>?';
        $linker->format($text)->willReturn($after_linker);
        $after_encoder = 'Hello, <@U1|user>. Do you like fun &amp; <http://example.com|games>?';
        $encoder->format($after_linker)->willReturn($after_encoder);
        $this->format($text)->shouldReturn($after_encoder);
    }