mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
Move PHPUnit tests into a tests/phpunit directory.
wp-tests-config.php can/should reside in the root of a develop checkout. `phpunit` should be run from the root. see #25088. git-svn-id: https://develop.svn.wordpress.org/trunk@25165 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @group formatting
|
||||
*/
|
||||
class Tests_Formatting_SanitizeTrackbackUrls extends WP_UnitTestCase {
|
||||
/**
|
||||
* @ticket 21624
|
||||
* @dataProvider breaks
|
||||
*/
|
||||
function test_sanitize_trackback_urls_with_multiple_urls( $break ) {
|
||||
$this->assertEquals( "http://example.com\nhttp://example.org", sanitize_trackback_urls( "http://example.com{$break}http://example.org" ) );
|
||||
}
|
||||
|
||||
function breaks() {
|
||||
return array(
|
||||
array( "\r\n\t " ),
|
||||
array( "\r" ),
|
||||
array( "\n" ),
|
||||
array( "\t" ),
|
||||
array( ' ' ),
|
||||
array( ' ' ),
|
||||
array( "\n " ),
|
||||
array( "\r\n" ),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user