1<?php
2
3/*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Symfony\Component\Console\Tests\Helper;
13
14use PHPUnit\Framework\TestCase;
15use Symfony\Component\Console\Helper\TableStyle;
16
17class TableStyleTest extends TestCase
18{
19    public function testSetPadTypeWithInvalidType()
20    {
21        $this->expectException('InvalidArgumentException');
22        $this->expectExceptionMessage('Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).');
23        $style = new TableStyle();
24        $style->setPadType('TEST');
25    }
26}
27