Skip to content

Commit aab4714

Browse files
committed
Fixup! Tests
1 parent 99fed56 commit aab4714

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

tests/phpunit/tests/formatting/wpHtmlSplit.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,6 @@ public function data_basic_features() {
4444
);
4545
}
4646

47-
/**
48-
* Automated performance testing of the main regex.
49-
*
50-
* @dataProvider data_whole_posts
51-
*
52-
* @covers ::get_html_split_regex
53-
*/
54-
public function test_pcre_performance( $input ) {
55-
$regex = get_html_split_regex();
56-
$result = benchmark_pcre_backtracking( $regex, $input, 'split' );
57-
return $this->assertLessThan( 200, $result );
58-
}
59-
6047
public function data_whole_posts() {
6148
require_once DIR_TESTDATA . '/formatting/whole-posts.php';
6249
return data_whole_posts();

tests/phpunit/tests/shortcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ public function data_escaping() {
622622
* @dataProvider data_escaping2
623623
*/
624624
public function test_escaping2( $input, $output ) {
625-
return $this->assertSame( $output, strip_shortcodes( $input ) );
625+
return $this->assertEqualHTML( $output, strip_shortcodes( $input ) );
626626
}
627627

628628
public function data_escaping2() {

0 commit comments

Comments
 (0)