Ticket #18776: 18776.unit-test.2.diff
File 18776.unit-test.2.diff, 665 bytes (added by , 10 years ago) |
---|
-
tests/phpunit/tests/formatting/balanceTags.php
204 204 } 205 205 } 206 206 207 /** 208 * @ticket 18776 209 */ 210 function test_shortcode_balance_tags() { 211 $input = "something [shortcode]<b>[/shortcode]"; 212 $this->assertSame( $input, balanceTags( $input, true ) ); 213 214 $input = "something <b>[shortcode]<b>[/shortcode]"; 215 $expected = "something <b>[shortcode]<b>[/shortcode]</b>"; 216 $this->assertSame( $expected, balanceTags( $input, true ) ); 217 } 207 218 }