Changeset 52010 for trunk/tests/phpunit/tests/formatting/wpHtmlSplit.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/wpHtmlSplit.php
r51623 r52010 11 11 * @dataProvider data_basic_features 12 12 */ 13 function test_basic_features( $input, $output ) {13 public function test_basic_features( $input, $output ) { 14 14 return $this->assertSame( $output, wp_html_split( $input ) ); 15 15 } 16 16 17 function data_basic_features() {17 public function data_basic_features() { 18 18 return array( 19 19 array( … … 41 41 * @dataProvider data_whole_posts 42 42 */ 43 function test_pcre_performance( $input ) {43 public function test_pcre_performance( $input ) { 44 44 $regex = get_html_split_regex(); 45 45 $result = benchmark_pcre_backtracking( $regex, $input, 'split' ); … … 47 47 } 48 48 49 function data_whole_posts() {49 public function data_whole_posts() { 50 50 require_once DIR_TESTDATA . '/formatting/whole-posts.php'; 51 51 return data_whole_posts();
Note: See TracChangeset
for help on using the changeset viewer.