Changeset 55064
- Timestamp:
- 01/13/2023 02:36:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/sanitizeTrackbackUrls.php
r53562 r55064 9 9 /** 10 10 * @ticket 21624 11 * @dataProvider breaks11 * @dataProvider separators 12 12 */ 13 public function test_sanitize_trackback_urls_with_multiple_urls( $break ) { 14 $this->assertSame( "http://example.com\nhttp://example.org", sanitize_trackback_urls( "http://example.com{$break}http://example.org" ) ); 13 public function test_sanitize_trackback_urls_with_multiple_urls( $separator ) { 14 $this->assertSame( 15 "http://example.com\nhttp://example.org", 16 sanitize_trackback_urls( "http://example.com{$separator}http://example.org" ) 17 ); 15 18 } 16 19 17 public function breaks() {20 public function separators() { 18 21 return array( 19 22 array( "\r\n\t " ),
Note: See TracChangeset
for help on using the changeset viewer.