public function testUnicodeRowMultiLine() { $decorator = new Decorator\Unicode(); $row = new Table\Row(); $row->appendColumn(new Table\Column("föö\nbär")); $row->appendColumn(new Table\Column("fööbär")); $this->assertEquals($row->render(array(3, 10), $decorator), "│föö│fööbär │\n│bär│ │\n"); }
public function testRowMultiLine() { $decorator = new Decorator\Unicode(); $row = new Table\Row(); $row->appendColumn(new Table\Column("foo\nbar")); $row->appendColumn(new Table\Column("foobar")); $this->assertEquals($row->render(array(10, 10), $decorator), "│foo │foobar │\n│bar │ │\n"); }