public function TableTest::testRenderMultiByte in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Helper/TableTest.php \Symfony\Component\Console\Tests\Helper\TableTest::testRenderMultiByte()
File
- vendor/
symfony/ console/ Tests/ Helper/ TableTest.php, line 467
Class
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testRenderMultiByte() {
if (!function_exists('mb_strlen')) {
$this
->markTestSkipped('The "mbstring" extension is not available');
}
$table = new Table($output = $this
->getOutputStream());
$table
->setHeaders(array(
'■■',
))
->setRows(array(
array(
1234,
),
))
->setStyle('default');
$table
->render();
$expected = <<<TABLE
+------+
| ■■ |
+------+
| 1234 |
+------+
TABLE;
$this
->assertEquals($expected, $this
->getOutputContent($output));
}