use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Helper\FormatterHelper;
class FormatterHelperTest extends TestCase
{ 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'
);
} public function testFormatBlock() { $formatter =
new FormatterHelper();
$this->
assertEquals( '<error> Some text to display </error>',
$formatter->
formatBlock('Some text to display', 'error'
),