From b73eb19aed66190c10c9cad476da7c36c271d6dc Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 19 Sep 2019 15:08:45 +0300 Subject: [ci skip] 3.1.11 release --- tests/codeigniter/helpers/url_helper_test.php | 89 --------------------------- 1 file changed, 89 deletions(-) delete mode 100644 tests/codeigniter/helpers/url_helper_test.php (limited to 'tests/codeigniter/helpers/url_helper_test.php') diff --git a/tests/codeigniter/helpers/url_helper_test.php b/tests/codeigniter/helpers/url_helper_test.php deleted file mode 100644 index 83a8c0ec2..000000000 --- a/tests/codeigniter/helpers/url_helper_test.php +++ /dev/null @@ -1,89 +0,0 @@ -helper('url'); - } - - public function test_url_title() - { - $words = array( - 'foo bar /' => 'foo-bar', - '\ testing 12' => 'testing-12' - ); - - foreach ($words as $in => $out) - { - $this->assertEquals($out, url_title($in, 'dash', TRUE)); - } - } - - // -------------------------------------------------------------------- - - public function test_url_title_extra_dashes() - { - $words = array( - '_foo bar_' => 'foo_bar', - '_What\'s wrong with CSS?_' => 'Whats_wrong_with_CSS' - ); - - foreach ($words as $in => $out) - { - $this->assertEquals($out, url_title($in, 'underscore')); - } - } - - // -------------------------------------------------------------------- - - public function test_prep_url() - { - $this->assertEquals('http://codeigniter.com', prep_url('codeigniter.com')); - $this->assertEquals('http://www.codeigniter.com', prep_url('www.codeigniter.com')); - } - - // -------------------------------------------------------------------- - - public function test_auto_link_url() - { - $strings = array( - 'www.codeigniter.com test' => 'www.codeigniter.com test', - 'This is my noreply@codeigniter.com test' => 'This is my noreply@codeigniter.com test', - '
www.google.com' => '
www.google.com', - 'Download CodeIgniter at www.codeigniter.com. Period test.' => 'Download CodeIgniter at www.codeigniter.com. Period test.', - 'Download CodeIgniter at www.codeigniter.com, comma test' => 'Download CodeIgniter at www.codeigniter.com, comma test', - 'This one: ://codeigniter.com must not break this one: http://codeigniter.com' => 'This one: ://codeigniter.com must not break this one: http://codeigniter.com', - 'Trailing slash: https://codeigniter.com/ fubar' => 'Trailing slash: https://codeigniter.com/ fubar' - ); - - foreach ($strings as $in => $out) - { - $this->assertEquals($out, auto_link($in, 'url')); - } - } - - // -------------------------------------------------------------------- - - public function test_pull_675() - { - $strings = array( - '
www.google.com' => '
www.google.com', - ); - - foreach ($strings as $in => $out) - { - $this->assertEquals($out, auto_link($in, 'url')); - } - } - - // -------------------------------------------------------------------- - - public function test_issue_5331() - { - $this->assertEquals( - 'this is some text that includes '.safe_mailto('www.email@domain.com').' which is causing an issue', - auto_link('this is some text that includes www.email@domain.com which is causing an issue') - ); - } -} -- cgit v1.2.3-24-g4f1b