Changeset 58048 for trunk/tests/phpunit/tests/html-api/wpHtmlProcessor.php
- Timestamp:
- 04/26/2024 01:51:06 PM (2 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)