Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! Add failing test
  • Loading branch information
sirreal committed Jan 31, 2024
commit 7b370bb3fb4d7ddb54b6a1a0bb8a1a0bdd0ba7cb
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public function test_basic_assertion_cdata_section() {
* @covers WP_HTML_Tag_Processor::next_token
*/
public function test_cdata_comment_with_incorrect_closer() {
$processor = new WP_HTML_Tag_Processor( '<![CDATA[this "cdata" is missing a closing square bracket. It should end at the first ">" ]>' );
$processor = new WP_HTML_Tag_Processor( '<![CDATA[this is missing a closing square bracket]>' );
$processor->next_token();

$this->assertSame(
Expand All @@ -373,7 +373,7 @@ public function test_cdata_comment_with_incorrect_closer() {
);

$this->assertSame(
'[CDATA[this "cdata" is missing a closing square bracket. It should end at the first "',
'[CDATA[this is missing a closing square bracket]',
$processor->get_modifiable_text(),
'Found incorrect modifiable text.'
);
Expand Down