We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8b5404 commit e31f47cCopy full SHA for e31f47c
Tests/Helper/TableCellStyleTest.php
@@ -12,6 +12,7 @@
12
namespace Symfony\Component\Console\Tests\Helper;
13
14
use PHPUnit\Framework\TestCase;
15
+use Symfony\Component\Console\Exception\InvalidArgumentException;
16
use Symfony\Component\Console\Helper\TableCellStyle;
17
18
class TableCellStyleTest extends TestCase
@@ -21,7 +22,8 @@ public function testCreateTableCellStyle()
21
22
$tableCellStyle = new TableCellStyle(['fg' => 'red']);
23
$this->assertEquals('red', $tableCellStyle->getOptions()['fg']);
24
- $this->expectException(\Symfony\Component\Console\Exception\InvalidArgumentException::class);
25
+ $this->expectException(InvalidArgumentException::class);
26
+
27
new TableCellStyle(['wrong_key' => null]);
28
}
29
0 commit comments