Changeset 42343 for trunk/tests/phpunit/tests/formatting/WPTrimWords.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/WPTrimWords.php
r25002 r42343 23 23 24 24 function test_strips_tags_before_trimming() { 25 $text = 'This text contains a <a href="http://wordpress.org"> link </a> to WordPress.org!';25 $text = 'This text contains a <a href="http://wordpress.org"> link </a> to WordPress.org!'; 26 26 $trimmed = 'This text contains a link…'; 27 27 $this->assertEquals( $trimmed, wp_trim_words( $text, 5 ) );
Note: See TracChangeset
for help on using the changeset viewer.