assertEquals( $content_with_hashtag, $content ); } public function the_content_provider() { $code = 'text with some https://test.de and tag inside'; $style = << ENDSTYLE; $pre = << Please don't https://test.de this. ENDPRE; $textarea = ''; $a_href = 'Text'; return array( array( 'https://wordpress.org/plugins/activitypub/', 'wordpress.org/plugins/activity' ), array( 'http://wordpress.org/', 'wordpress.org/' ), array( 'https://test.org/?get=täst', 'test.org/?get=täst' ), array( 'https://täst.org/', 'täst.org/' ), array( 'https://wordpress.org/index.html', 'wordpress.org/index.html' ), array( 'ftp://test.de/', 'ftp://test.de/' ), array( 'hello https://www.test.de world https://wordpress.org/ test', 'hello test.de world wordpress.org/ test' ), array( 'hello https://www.test.de test', 'hello test.de test' ), array( 'hello www.test.de test', 'hello test.de test' ), array( 'hello https://test:test@test.de test', 'hello test.de test' ), array( $code, $code ), array( $style, $style ), array( $textarea, $textarea ), array( $pre, $pre ), array( $a_href, $a_href ), ); } }