You are here

public function FormatterHelperTest::testFormatSection in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Helper/FormatterHelperTest.php \Symfony\Component\Console\Tests\Helper\FormatterHelperTest::testFormatSection()

File

vendor/symfony/console/Tests/Helper/FormatterHelperTest.php, line 18

Class

FormatterHelperTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testFormatSection() {
  $formatter = new FormatterHelper();
  $this
    ->assertEquals('<info>[cli]</info> Some text to display', $formatter
    ->formatSection('cli', 'Some text to display'), '::formatSection() formats a message in a section');
}