Make WordPress Core

Changeset 383 in tests


Ignore:
Timestamp:
08/01/2011 04:16:33 PM (15 years ago)
Author:
ryan
Message:

specialchars tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_formatting.php

    r382 r383  
    681681
    682682class TestWPSpecialchars extends WPTestCase {
     683    function test_wp_specialchars_basics() {
     684        $html =  "&<hello world>";
     685        $this->assertEquals( $html, _wp_specialchars( $html ) );
     686
     687        $double = "&<hello world>";
     688        $this->assertEquals( $double, _wp_specialchars( $html, ENT_NOQUOTES, false, true ) );
     689    }
     690
    683691    function test_allowed_entity_names() {
    684692        global $allowedentitynames;
Note: See TracChangeset for help on using the changeset viewer.