@@ -118,30 +118,30 @@ public static function renderProvider()
118118 ['ISBN ' , 'Title ' , 'Author ' ],
119119 $ books ,
120120 '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+ ]),
129129 ],
130130 [
131131 ['ISBN ' , 'Title ' , 'Author ' ],
132132 $ books ,
133133 '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+ ]),
145145 ],
146146 [
147147 ['ISBN ' , 'Title ' , 'Author ' ],
@@ -1378,12 +1378,14 @@ public function testColumnMaxWidths()
13781378
13791379 $ expected =
13801380 <<<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+ +---------------+-------+----------+----------------+
13871389
13881390TABLE ;
13891391
@@ -1416,8 +1418,8 @@ public function testColumnMaxWidthsHeaders()
14161418| Publication | Very long header with a lot of |
14171419| | information |
14181420+-------------+--------------------------------+
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 |
14211423+-------------+--------------------------------+
14221424
14231425TABLE ;
@@ -1577,22 +1579,22 @@ public function testWithColspanAndMaxWith()
15771579| Lorem ipsum dolor sit amet, consectetur adipi |
15781580| scing elit, sed do eiusmod tempor |
15791581+-----------------+-----------------+-----------------+
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 |
15821584+-----------------+-----------------+-----------------+
15831585| Lorem ipsum dolor sit amet, co | hello world |
15841586| nsectetur | |
15851587+-----------------+-----------------+-----------------+
15861588| hello world | Lorem ipsum dolor sit amet, co |
15871589| | nsectetur adipiscing elit |
15881590+-----------------+-----------------+-----------------+
1589- | hello | world | Lorem ipsum dol |
1590- | | | or sit amet, co |
1591- | | | nsectetur |
1591+ | hello | world | Lorem ipsum |
1592+ | | | dolor sit amet, |
1593+ | | | consectetur |
15921594+-----------------+-----------------+-----------------+
15931595| Symfony | Test | Lorem ipsum dol |
1594- | | | or sit amet, co |
1595- | | | nsectetur |
1596+ | | | or sit amet, |
1597+ | | | consectetur |
15961598+-----------------+-----------------+-----------------+
15971599
15981600TABLE ;
@@ -1614,8 +1616,9 @@ public function testWithHyperlinkAndMaxWidth()
16141616 $ expected =
16151617 <<<TABLE
16161618+----------------------+
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\\ |
16191622| \033]8;;Lorem \033\\adipiscing elit, sed \033]8;; \033\\ |
16201623| \033]8;;Lorem \033\\do eiusmod tempor \033]8;; \033\\ |
16211624+----------------------+
0 commit comments