TableStyleTest.php 739 B

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