/**
  * Automated performance testing of the main regex.
  *
  * @dataProvider data_whole_posts
  */
 function test_pcre_performance($input)
 {
     global $shortcode_tags;
     // With Shortcodes Disabled
     $regex = _get_wptexturize_split_regex();
     $result = benchmark_pcre_backtracking($regex, $input, 'split');
     $this->assertLessThan(200, $result);
     // With Shortcodes Enabled
     $shortcode_regex = _get_wptexturize_shortcode_regex(array_keys($shortcode_tags));
     $regex = _get_wptexturize_split_regex($shortcode_regex);
     $result = benchmark_pcre_backtracking($regex, $input, 'split');
     return $this->assertLessThan(200, $result);
 }
 /**
  * Automated performance testing of the main regex.
  *
  * @dataProvider data_whole_posts
  */
 function test_pcre_performance($input)
 {
     $regex = '/' . get_shortcode_regex() . '/';
     $result = benchmark_pcre_backtracking($regex, $input, 'match_all');
     return $this->assertLessThan(200, $result);
 }
 /**
  * Automated performance testing of the main regex.
  *
  * @dataProvider data_whole_posts
  */
 function test_pcre_performance($input)
 {
     $regex = get_html_split_regex();
     $result = benchmark_pcre_backtracking($regex, $input, 'split');
     return $this->assertLessThan(200, $result);
 }