WordPress.org

Make WordPress Core

Changeset 224 in tests


Ignore:
Timestamp:
05/14/2009 05:56:37 PM (9 years ago)
Author:
westi
Message:

Update Test_WP_Specialchars tests to match current wp_specialchars desired behaviour with respect to ampersand entity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/jacob/TestFormatting.php

    r124 r224  
    109109    function test_escapes_ampersands() {
    110110        $source = "penn & teller & at&t";
    111         $res = "penn & teller & at&t";
     111        $res = "penn & teller & at&t";
    112112        $this->assertEquals($res, wp_specialchars($source));
    113113    }
     
    126126    function test_ignores_existing_entities() {
    127127        $source = '& £ &';
    128         $this->assertEquals($source, wp_specialchars($source));
     128        $res = '& £ &';
     129        $this->assertEquals($res, wp_specialchars($source));
    129130    }
    130131}
Note: See TracChangeset for help on using the changeset viewer.