| 350 | /** |
| 351 | * @ticket 43725 |
| 352 | */ |
| 353 | public function test_same_tag_multiple_formats_open_closed_one() { |
| 354 | $in = <<<EOT |
| 355 | This post uses URL multiple times. |
| 356 | |
| 357 | [url]Now this is wrapped[/url] |
| 358 | |
| 359 | [url] This one is standalone |
| 360 | |
| 361 | [url]Now this is wrapped too[/url] |
| 362 | EOT; |
| 363 | $expected = <<<EOT |
| 364 | This post uses URL multiple times. |
| 365 | |
| 366 | http://www.wordpress.org/ |
| 367 | |
| 368 | http://www.wordpress.org/ This one is standalone |
| 369 | |
| 370 | http://www.wordpress.org/ |
| 371 | EOT; |
| 372 | $out = do_shortcode( $in ); |
| 373 | $this->assertEquals( strip_ws( $expected ), strip_ws( $out ) ); |
| 374 | } |
| 375 | |
| 376 | /** |
| 377 | * @ticket 43725 |
| 378 | */ |
| 379 | public function test_same_tag_multiple_formats_open_closed_two() { |
| 380 | $in = <<<EOT |
| 381 | This post uses URL multiple times. |
| 382 | |
| 383 | [url]Now this is wrapped[/url] |
| 384 | |
| 385 | [url/] This one is standalone |
| 386 | |
| 387 | [url]Now this is wrapped too[/url] |
| 388 | EOT; |
| 389 | $expected = <<<EOT |
| 390 | This post uses URL multiple times. |
| 391 | |
| 392 | http://www.wordpress.org/ |
| 393 | |
| 394 | http://www.wordpress.org/ This one is standalone |
| 395 | |
| 396 | http://www.wordpress.org/ |
| 397 | EOT; |
| 398 | $out = do_shortcode( $in ); |
| 399 | $this->assertEquals( strip_ws( $expected ), strip_ws( $out ) ); |
| 400 | } |
| 401 | |