Ticket #23187: 23187-ut.diff
File 23187-ut.diff, 737 bytes (added by , 12 years ago) |
---|
-
tests/formatting/EscUrl.php
35 35 $this->assertEquals('', esc_url('nasty://example.com/')); 36 36 } 37 37 38 function test_protocol_case() { 39 $this->assertEquals('http://example.com', esc_url('HTTP://example.com')); 40 $this->assertEquals('http://example.com', esc_url('Http://example.com')); 41 } 42 38 43 function test_display_extras() { 39 44 $this->assertEquals('http://example.com/'quoted'', esc_url('http://example.com/\'quoted\'')); 40 45 $this->assertEquals('http://example.com/\'quoted\'', esc_url('http://example.com/\'quoted\'',null,'notdisplay'));