Skip to content

Commit

Permalink
Fix PHPunit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Jan 23, 2025
1 parent 0cbd14d commit 45afeb2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/php/includes/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,30 @@ public function __construct( $post ) {
}
}

/**
* Mock WP_HTML_Tag_Processor
*/
class WP_HTML_Tag_Processor {
protected $html;

/**
* Constructor.
*
* @param string $html HTML to process.
*/
public function __construct( $html ) {
$this->html = $html;
}

public function next_tag() {
return false;
}

public function get_attribute() {
return null;
}
}

/**
* Return testing friendly url
*
Expand Down

0 comments on commit 45afeb2

Please sign in to comment.