TableStyleTest.php 726 B

123456789101112131415161718192021222324252627
  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 Symfony\Component\Console\Helper\TableStyle;
  12. class TableStyleTest extends \PHPUnit_Framework_TestCase
  13. {
  14. /**
  15. * @expectedException \InvalidArgumentException
  16. * @expectedExceptionMessage Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).
  17. */
  18. public function testSetPadTypeWithInvalidType()
  19. {
  20. $style = new TableStyle();
  21. $style->setPadType('TEST');
  22. }
  23. }