@@ -118,30 +118,30 @@ public static function renderProvider()
118
118
['ISBN ' , 'Title ' , 'Author ' ],
119
119
$ books ,
120
120
'compact ' ,
121
- <<<'TABLE'
122
- ISBN Title Author
123
- 99921-58-10-7 Divine Comedy Dante Alighieri
124
- 9971-5-0210-0 A Tale of Two Cities Charles Dickens
125
- 960-425-059-0 The Lord of the Rings J. R. R. Tolkien
126
- 80-902734-1-6 And Then There Were None Agatha Christie
127
-
128
- TABLE
121
+ implode ( "\n" , [
122
+ ' ISBN Title Author ' ,
123
+ ' 99921-58-10-7 Divine Comedy Dante Alighieri ' ,
124
+ ' 9971-5-0210-0 A Tale of Two Cities Charles Dickens ' ,
125
+ ' 960-425-059-0 The Lord of the Rings J. R. R. Tolkien ' ,
126
+ ' 80-902734-1-6 And Then There Were None Agatha Christie ' ,
127
+ '' ,
128
+ ]),
129
129
],
130
130
[
131
131
['ISBN ' , 'Title ' , 'Author ' ],
132
132
$ books ,
133
133
'borderless ' ,
134
- <<<'TABLE'
135
- =============== ========================== ==================
136
- ISBN Title Author
137
- =============== ========================== ==================
138
- 99921-58-10-7 Divine Comedy Dante Alighieri
139
- 9971-5-0210-0 A Tale of Two Cities Charles Dickens
140
- 960-425-059-0 The Lord of the Rings J. R. R. Tolkien
141
- 80-902734-1-6 And Then There Were None Agatha Christie
142
- =============== ========================== ==================
143
-
144
- TABLE
134
+ implode ( "\n" , [
135
+ ' =============== ========================== ================== ' ,
136
+ ' ISBN Title Author ' ,
137
+ ' =============== ========================== ================== ' ,
138
+ ' 99921-58-10-7 Divine Comedy Dante Alighieri ' ,
139
+ ' 9971-5-0210-0 A Tale of Two Cities Charles Dickens ' ,
140
+ ' 960-425-059-0 The Lord of the Rings J. R. R. Tolkien ' ,
141
+ ' 80-902734-1-6 And Then There Were None Agatha Christie ' ,
142
+ ' =============== ========================== ================== ' ,
143
+ '' ,
144
+ ]),
145
145
],
146
146
[
147
147
['ISBN ' , 'Title ' , 'Author ' ],
@@ -1378,12 +1378,14 @@ public function testColumnMaxWidths()
1378
1378
1379
1379
$ expected =
1380
1380
<<<TABLE
1381
- +---------------+-------+------------+-----------------+
1382
- | Divine Comedy | A Tal | The Lord o | And Then There |
1383
- | | e of | f the Ring | Were None |
1384
- | | Two C | s | |
1385
- | | ities | | |
1386
- +---------------+-------+------------+-----------------+
1381
+ +---------------+-------+----------+----------------+
1382
+ | Divine Comedy | A | The Lord | And Then There |
1383
+ | | Tale | of the | Were None |
1384
+ | | of | Rings | |
1385
+ | | Two | | |
1386
+ | | Citie | | |
1387
+ | | s | | |
1388
+ +---------------+-------+----------+----------------+
1387
1389
1388
1390
TABLE ;
1389
1391
@@ -1416,8 +1418,8 @@ public function testColumnMaxWidthsHeaders()
1416
1418
| Publication | Very long header with a lot of |
1417
1419
| | information |
1418
1420
+-------------+--------------------------------+
1419
- | 1954 | The Lord of the Rings, by J.R. |
1420
- | | R. Tolkien |
1421
+ | 1954 | The Lord of the Rings, by |
1422
+ | | J.R.R. Tolkien |
1421
1423
+-------------+--------------------------------+
1422
1424
1423
1425
TABLE ;
@@ -1577,22 +1579,22 @@ public function testWithColspanAndMaxWith()
1577
1579
| Lorem ipsum dolor sit amet, consectetur adipi |
1578
1580
| scing elit, sed do eiusmod tempor |
1579
1581
+-----------------+-----------------+-----------------+
1580
- | Lorem ipsum dolor sit amet, consectetur adipi |
1581
- | scing elit, sed do eiusmod tempor |
1582
+ | Lorem ipsum dolor sit amet, consectetur |
1583
+ | adipiscing elit, sed do eiusmod tempor |
1582
1584
+-----------------+-----------------+-----------------+
1583
1585
| Lorem ipsum dolor sit amet, co | hello world |
1584
1586
| nsectetur | |
1585
1587
+-----------------+-----------------+-----------------+
1586
1588
| hello world | Lorem ipsum dolor sit amet, co |
1587
1589
| | nsectetur adipiscing elit |
1588
1590
+-----------------+-----------------+-----------------+
1589
- | hello | world | Lorem ipsum dol |
1590
- | | | or sit amet, co |
1591
- | | | nsectetur |
1591
+ | hello | world | Lorem ipsum |
1592
+ | | | dolor sit amet, |
1593
+ | | | consectetur |
1592
1594
+-----------------+-----------------+-----------------+
1593
1595
| Symfony | Test | Lorem ipsum dol |
1594
- | | | or sit amet, co |
1595
- | | | nsectetur |
1596
+ | | | or sit amet, |
1597
+ | | | consectetur |
1596
1598
+-----------------+-----------------+-----------------+
1597
1599
1598
1600
TABLE ;
@@ -1614,8 +1616,9 @@ public function testWithHyperlinkAndMaxWidth()
1614
1616
$ expected =
1615
1617
<<<TABLE
1616
1618
+----------------------+
1617
- | \033]8;;Lorem \033\\Lorem ipsum dolor si \033]8;; \033\\ |
1618
- | \033]8;;Lorem \033\\t amet, consectetur \033]8;; \033\\ |
1619
+ | \033]8;;Lorem \033\\Lorem ipsum dolor \033]8;; \033\\ |
1620
+ | \033]8;;Lorem \033\\sit amet, \033]8;; \033\\ |
1621
+ | \033]8;;Lorem \033\\consectetur \033]8;; \033\\ |
1619
1622
| \033]8;;Lorem \033\\adipiscing elit, sed \033]8;; \033\\ |
1620
1623
| \033]8;;Lorem \033\\do eiusmod tempor \033]8;; \033\\ |
1621
1624
+----------------------+
0 commit comments