Skip to content

Commit 0ab493d

Browse files
committed
-
1 parent 86dc85b commit 0ab493d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

+7-6
Original file line numberDiff line numberDiff line change
@@ -1017,15 +1017,16 @@ public function testColumnStyle()
10171017

10181018
public function testThrowsWhenTheCellInAnArray()
10191019
{
1020-
$table = new Table( $this->getOutputStream());
1021-
$table->setHeaders(['ISBN', 'Title', 'Author', 'Price']);
1022-
10231020
$this->expectException(InvalidArgumentException::class);
10241021
$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+
]);
10251028

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

10311032
public function testColumnWidth()

0 commit comments

Comments
 (0)