Changeset 273 in tests
- Timestamp:
- 11/30/2009 07:39:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_includes_formatting.php
r271 r273 334 334 function test_bracketed_quotes_3810() { 335 335 $this->assertEquals('A dog (“Hubertus”) was sent out.', wptexturize('A dog ("Hubertus") was sent out.')); 336 } 336 } 337 337 338 338 function test_quotes() { … … 360 360 $this->assertEquals('Class of ’99', wptexturize("Class of '99")); 361 361 $this->assertEquals('‘Class of ’99’', wptexturize("'Class of '99'")); 362 } 362 } 363 363 } 364 364 365 365 class TestCleanUrl extends WPTestCase { 366 366 function test_spaces() { 367 $this->assertEquals('http://example.com/Mr 367 $this->assertEquals('http://example.com/MrWordPress', clean_url('http://example.com/Mr WordPress')); 368 368 $this->assertEquals('http://example.com/Mr%20WordPress', clean_url('http://example.com/Mr%20WordPress')); 369 369 } … … 396 396 $this->assertEquals('http://example.com/'quoted'', clean_url('http://example.com/\'quoted\'')); 397 397 $this->assertEquals('http://example.com/\'quoted\'', clean_url('http://example.com/\'quoted\'',null,'notdisplay')); 398 } 399 400 function test_non_ascii() { 401 $this->assertEquals( 'http://example.org/баба', clean_url( 'http://example.org/баба' ) ); 402 $this->assertEquals( 'http://баба.org/баба', clean_url( 'http://баба.org/баба' ) ); 403 $this->assertEquals( 'http://müller.com/', clean_url( 'http://müller.com/' ) ); 398 404 } 399 405 }
Note: See TracChangeset
for help on using the changeset viewer.