File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,25 @@ public function testTableWithMultibyteStrings() {
127127| Schätzen | Apprécier | Оценить | 欣賞 |
128128+----------+-----------+---------+---------+
129129
130+ OUT;
131+ $ this ->assertInOutEquals (array ($ headers , $ rows ), $ output );
132+ }
133+
134+ /**
135+ * Test that % gets escaped correctly.
136+ */
137+ public function testTableWithPercentCharacters () {
138+ $ headers = array ( 'Heading ' , 'Heading2 ' , 'Heading3 ' );
139+ $ rows = array (
140+ array ( '% at start ' , 'at end % ' , 'in % middle ' )
141+ );
142+ $ output = <<<'OUT'
143+ +------------+----------+--------------+
144+ | Heading | Heading2 | Heading3 |
145+ +------------+----------+--------------+
146+ | % at start | at end % | in % middle |
147+ +------------+----------+--------------+
148+
130149OUT;
131150 $ this ->assertInOutEquals (array ($ headers , $ rows ), $ output );
132151 }
You can’t perform that action at this time.
0 commit comments