assertEquals( sprintf( $content_with_hashtag, $link ), $content ); } public function the_content_provider() { $code = 'text with some #object and tag inside'; $style = << ENDSTYLE; $pre = << Please don't #touch this. ENDPRE; $textarea = ''; return array( array( 'test', 'test' ), array( '#test', '#test' ), array( 'hallo #test test', 'hallo #test test' ), array( 'hallo #object test', 'hallo test' ), array( '#object test', ' test' ), array( 'hallo test test', 'hallo test test' ), array( 'hallo #test test', 'hallo #test test' ), array( '
hallo #object test
', '
hallo test
' ), array( '
hallo #object
', '
hallo
' ), array( '
#object
', '
' ), array( '#object', '#object' ), array( '', '' ), array( '
object', '
object' ), array( $code, $code ), array( $style, $style ), array( $textarea, $textarea ), array( $pre, $pre ), ); } }