Skip to content

Commit

Permalink
Fix test class implementation of abstract class
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Dec 11, 2024
1 parent 85e4d6a commit 40d914b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/phpunit/tests/html-api/wpCssSelectorParserMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class Tests_HtmlApi_WpCssSelectorParserMatcher extends WP_UnitTestCase {
public function set_up(): void {
parent::set_up();
$this->test_class = new class() extends WP_CSS_Selector_Parser_Matcher {
public function matches( $processor ): bool {
throw new Exeption( 'Matches called on test class.' );
}
public static function parse( string $input, int &$offset ): ?static {
throw new Exeption( 'Parse called on test class.' );
}

/*
* Parsing
*/
Expand Down

0 comments on commit 40d914b

Please sign in to comment.