Changeset 58048
- Timestamp:
- 04/26/2024 01:51:06 PM (11 days ago)
- Location:
- trunk/tests/phpunit/tests/html-api
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/html-api/wpHtmlProcessor.php
r57508 r58048 31 31 * 32 32 * @covers WP_HTML_Processor::__construct 33 * @expectedIncorrectUsage WP_HTML_Processor::__construct 33 34 */ 34 35 public function test_warns_that_the_static_creator_methods_should_be_called_instead_of_the_public_constructor() { 35 $this->setExpectedIncorrectUsage( 'WP_HTML_Processor::__construct' );36 37 36 new WP_HTML_Processor( '<p>Light roast.</p>' ); 38 39 $this->assertNotNull(40 $this->caught_doing_it_wrong['WP_HTML_Processor::__construct'],41 "Calling the public constructor should warn to call the static creator methods instead, but didn't."42 );43 37 } 44 38 -
trunk/tests/phpunit/tests/html-api/wpHtmlTagProcessor-bookmark.php
r57805 r58048 415 415 * 416 416 * @covers WP_HTML_Tag_Processor::set_bookmark 417 * @expectedIncorrectUsage WP_HTML_Tag_Processor::set_bookmark 417 418 */ 418 419 public function test_limits_the_number_of_bookmarks() { … … 424 425 } 425 426 426 $this->setExpectedIncorrectUsage( 'WP_HTML_Tag_Processor::set_bookmark' );427 427 $this->assertFalse( $processor->set_bookmark( 'final bookmark' ), "Allocated $i bookmarks, which is one above the limit" ); 428 428 }
Note: See TracChangeset
for help on using the changeset viewer.