Changeset 52010 for trunk/tests/phpunit/tests/formatting/wpHtmlExcerpt.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/wpHtmlExcerpt.php
r51623 r52010 5 5 */ 6 6 class Tests_Formatting_wpHtmlExcerpt extends WP_UnitTestCase { 7 function test_simple() {7 public function test_simple() { 8 8 $this->assertSame( 'Baba', wp_html_excerpt( 'Baba told me not to come', 4 ) ); 9 9 } 10 function test_html() {10 public function test_html() { 11 11 $this->assertSame( 'Baba', wp_html_excerpt( "<a href='http://baba.net/'>Baba</a> told me not to come", 4 ) ); 12 12 } 13 function test_entities() {13 public function test_entities() { 14 14 $this->assertSame( 'Baba', wp_html_excerpt( 'Baba & Dyado', 8 ) ); 15 15 $this->assertSame( 'Baba', wp_html_excerpt( 'Baba & Dyado', 8 ) );
Note: See TracChangeset
for help on using the changeset viewer.