Changeset 233 in tests for wp-testcase/test_includes_formatting.php
- Timestamp:
- 08/13/2009 09:37:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_includes_formatting.php
r230 r233 221 221 } 222 222 223 function test_quotes() { 224 $this->assertEquals('“Quoted String”', wptexturize('"Quoted String"')); 225 $this->assertEquals('Here is “<a href="http://example.com">a test with a link</a>”', wptexturize('Here is "<a href="http://yahoo.com">a test with a link</a>"')); 226 $this->assertEquals('Here is “<a href="http://example.com">a test with a link and a period </a>”.', wptexturize('Here is "<a href="http://example.com">a test with a link and a period</a>".')); 227 $this->assertEquals('Here is “<a href="http://example.com">a test with a link</a>” 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 “<a href="http://example.com">a test with a link</a> and some text quoted”', wptexturize('Here is "<a href="http://example.com">a test with a link</a> and some text quoted"')); 229 } 230 223 231 224 232 }
Note: See TracChangeset
for help on using the changeset viewer.