Changeset 42343 for trunk/tests/phpunit/tests/formatting/HtmlExcerpt.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/HtmlExcerpt.php
r25002 r42343 6 6 class Tests_Formatting_HtmlExcerpt extends WP_UnitTestCase { 7 7 function test_simple() { 8 $this->assertEquals( "Baba", wp_html_excerpt("Baba told me not to come", 4));8 $this->assertEquals( 'Baba', wp_html_excerpt( 'Baba told me not to come', 4 ) ); 9 9 } 10 10 function test_html() { 11 $this->assertEquals( "Baba", wp_html_excerpt("<a href='http://baba.net/'>Baba</a> told me not to come", 4));11 $this->assertEquals( '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->assertEquals( "Baba", wp_html_excerpt("Baba & Dyado", 8));15 $this->assertEquals( "Baba", wp_html_excerpt("Baba & Dyado", 8));16 $this->assertEquals( "Baba & D", wp_html_excerpt("Baba & Dyado", 12));17 $this->assertEquals( "Baba & Dyado", wp_html_excerpt("Baba & Dyado", 100));14 $this->assertEquals( 'Baba', wp_html_excerpt( 'Baba & Dyado', 8 ) ); 15 $this->assertEquals( 'Baba', wp_html_excerpt( 'Baba & Dyado', 8 ) ); 16 $this->assertEquals( 'Baba & D', wp_html_excerpt( 'Baba & Dyado', 12 ) ); 17 $this->assertEquals( 'Baba & Dyado', wp_html_excerpt( 'Baba & Dyado', 100 ) ); 18 18 } 19 19 }
Note: See TracChangeset
for help on using the changeset viewer.