Skip to content

Commit bf71742

Browse files
committed
-
1 parent 2cfe834 commit bf71742

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/Symfony/Component/Console/Tests/Helper/TableTest.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,16 +1017,15 @@ public function testColumnStyle()
10171017

10181018
public function testThrowsWhenTheCellInAnArray()
10191019
{
1020+
$table = new Table($output = $this->getOutputStream());
1021+
$table->setHeaders(['ISBN', 'Title', 'Author', 'Price']);
1022+
10201023
$this->expectException(InvalidArgumentException::class);
10211024
$this->expectExceptionMessage('A cell must be a TableCell, a scalar or an object implementing "__toString()", "array" given.');
1022-
$table = new Table($output = $this->getOutputStream());
1023-
$table
1024-
->setHeaders(['ISBN', 'Title', 'Author', 'Price'])
1025-
->setRows([
1026-
['99921-58-10-7', [], 'Dante Alighieri', '9.95'],
1027-
]);
10281025

1029-
$table->render();
1026+
$table->setRows([
1027+
['99921-58-10-7', [], 'Dante Alighieri', '9.95'],
1028+
]);
10301029
}
10311030

10321031
public function testColumnWidth()

0 commit comments

Comments
 (0)