Changeset 383 in tests
- Timestamp:
- 08/01/2011 04:16:33 PM (15 years ago)
- File:
-
- 1 edited
-
wp-testcase/test_includes_formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_includes_formatting.php
r382 r383 681 681 682 682 class TestWPSpecialchars extends WPTestCase { 683 function test_wp_specialchars_basics() { 684 $html = "&<hello world>"; 685 $this->assertEquals( $html, _wp_specialchars( $html ) ); 686 687 $double = "&amp;&lt;hello world&gt;"; 688 $this->assertEquals( $double, _wp_specialchars( $html, ENT_NOQUOTES, false, true ) ); 689 } 690 683 691 function test_allowed_entity_names() { 684 692 global $allowedentitynames;
Note: See TracChangeset
for help on using the changeset viewer.