Make WordPress Core


Ignore:
Timestamp:
08/13/2009 09:37:13 PM (15 years ago)
Author:
westi
Message:

Add some simple tests for curly quote bugs from WP#10606 props xibe for the test cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_formatting.php

    r230 r233  
    221221    }
    222222   
     223    function test_quotes() {
     224        $this->assertEquals('“Quoted String”', wptexturize('"Quoted String"'));
     225        $this->assertEquals('Here is &#8220;<a href="http://example.com">a test with a link</a>&#8221;', wptexturize('Here is "<a href="http://yahoo.com">a test with a link</a>"'));
     226        $this->assertEquals('Here is &#8220;<a href="http://example.com">a test with a link and a period </a>&#8221;.', wptexturize('Here is "<a href="http://example.com">a test with a link and a period</a>".'));
     227        $this->assertEquals('Here is &#8220;<a href="http://example.com">a test with a link</a>&#8221; and a space.', wptexturize('Here is "<a href="http://example.com">a test with a link</a>" and a space.'));
     228        $this->assertEquals('Here is &#8220;<a href="http://example.com">a test with a link</a> and some text quoted&#8221;', wptexturize('Here is "<a href="http://example.com">a test with a link</a> and some text quoted"'));
     229    }
     230   
    223231
    224232}
Note: See TracChangeset for help on using the changeset viewer.