You appear to be a bot. Output may be restricted
Description
Usage
Tests_Media::test_new_img_caption_shortcode_new_format();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/media.php
Lines:
1 to 12 of 12
function test_new_img_caption_shortcode_new_format() { $result = img_caption_shortcode( array( 'width' => 20 ), $this->img_content . $this->html_content ); $img_preg = preg_quote( $this->img_content ); $content_preg = preg_quote( $this->html_content ); $this->assertEquals( 1, preg_match_all( "~{$img_preg}.*wp-caption-text~", $result, $_r ) ); $this->assertEquals( 1, preg_match_all( "~wp-caption-text.*{$content_preg}~", $result, $_r ) ); }