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 = 'color: #ccc'; return array( array( 'test', 'test' ), array( '#test', '#test' ), array( 'hallo #test test', 'hallo #test test' ), array( 'hallo #object test', 'hallo #object test' ), array( '#object test', '#object test' ), array( 'hallo test test', 'hallo test test' ), array( 'hallo #test test', 'hallo #test test' ), array( 'hallo #object test', 'hallo #object test' ), array( 'hallo #object', 'hallo #object' ), array( '#object', '#object' ), array( '#object', '#object' ), array( '', '' ), array( 'object', 'object' ), array( $code, $code ), array( $style, $style ), array( $textarea, $textarea ), array( $pre, $pre ), ); } }
text with some #object and tag inside