Changeset 48937 for trunk/tests/phpunit/tests/formatting/HtmlExcerpt.php
- Timestamp:
- 09/02/2020 12:35:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/HtmlExcerpt.php
r46586 r48937 6 6 class Tests_Formatting_HtmlExcerpt extends WP_UnitTestCase { 7 7 function test_simple() { 8 $this->assert Equals( 'Baba', wp_html_excerpt( 'Baba told me not to come', 4 ) );8 $this->assertSame( 'Baba', wp_html_excerpt( 'Baba told me not to come', 4 ) ); 9 9 } 10 10 function test_html() { 11 $this->assert Equals( 'Baba', wp_html_excerpt( "<a href='http://baba.net/'>Baba</a> told me not to come", 4 ) );11 $this->assertSame( 'Baba', wp_html_excerpt( "<a href='http://baba.net/'>Baba</a> told me not to come", 4 ) ); 12 12 } 13 13 function test_entities() { 14 $this->assert Equals( 'Baba', wp_html_excerpt( 'Baba & Dyado', 8 ) );15 $this->assert Equals( 'Baba', wp_html_excerpt( 'Baba & Dyado', 8 ) );16 $this->assert Equals( 'Baba & D', wp_html_excerpt( 'Baba & Dyado', 12 ) );17 $this->assert Equals( 'Baba & Dyado', wp_html_excerpt( 'Baba & Dyado', 100 ) );14 $this->assertSame( 'Baba', wp_html_excerpt( 'Baba & Dyado', 8 ) ); 15 $this->assertSame( 'Baba', wp_html_excerpt( 'Baba & Dyado', 8 ) ); 16 $this->assertSame( 'Baba & D', wp_html_excerpt( 'Baba & Dyado', 12 ) ); 17 $this->assertSame( 'Baba & Dyado', wp_html_excerpt( 'Baba & Dyado', 100 ) ); 18 18 } 19 19 }
Note: See TracChangeset
for help on using the changeset viewer.