From cd7922c58f3f2d04b8ca4bcf336ecda2787c821e Mon Sep 17 00:00:00 2001 From: Jeff Tilson Date: Mon, 29 Apr 2013 13:38:42 -0400 Subject: Fixes #2057 (broken internet archive links) --- engine/tests/regression/trac_bugs.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engine/tests') diff --git a/engine/tests/regression/trac_bugs.php b/engine/tests/regression/trac_bugs.php index 4de9c306b..b791dcad3 100644 --- a/engine/tests/regression/trac_bugs.php +++ b/engine/tests/regression/trac_bugs.php @@ -288,4 +288,13 @@ class ElggCoreRegressionBugsTest extends ElggCoreUnitTest { $this->assertEqual($output, parse_urls($input)); } } + + /** + * Test #2057 -- parse_urls() + * https://github.com/Elgg/Elgg/issues/2057 + */ + public function test_archive_url() { + $input = 'google'; + $this->assertEqual($input, parse_urls($input)); + } } -- cgit v1.2.3 From 003439fd46cb5e0dedfabf6e49110b3bdffbefe9 Mon Sep 17 00:00:00 2001 From: Jeff Tilson Date: Mon, 29 Apr 2013 14:06:18 -0400 Subject: Including internet archive url test in existing test_parse_url function --- engine/tests/regression/trac_bugs.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'engine/tests') diff --git a/engine/tests/regression/trac_bugs.php b/engine/tests/regression/trac_bugs.php index b791dcad3..cb3f20421 100644 --- a/engine/tests/regression/trac_bugs.php +++ b/engine/tests/regression/trac_bugs.php @@ -282,19 +282,12 @@ class ElggCoreRegressionBugsTest extends ElggCoreUnitTest { 'ssl https://example.org/ test', 'ftp ftp://example.org/ test' => 'ftp ftp://example.org/ test', + 'google' => + 'google' ); foreach ($cases as $input => $output) { $this->assertEqual($output, parse_urls($input)); } } - - /** - * Test #2057 -- parse_urls() - * https://github.com/Elgg/Elgg/issues/2057 - */ - public function test_archive_url() { - $input = 'google'; - $this->assertEqual($input, parse_urls($input)); - } } -- cgit v1.2.3 From f04fdceb5941df31e1ac94f7fb586c2688813da7 Mon Sep 17 00:00:00 2001 From: Jeff Tilson Date: Mon, 29 Apr 2013 14:42:24 -0400 Subject: Adding single quote anchor to parse_url unit test --- engine/tests/regression/trac_bugs.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engine/tests') diff --git a/engine/tests/regression/trac_bugs.php b/engine/tests/regression/trac_bugs.php index cb3f20421..b7654a794 100644 --- a/engine/tests/regression/trac_bugs.php +++ b/engine/tests/regression/trac_bugs.php @@ -282,8 +282,12 @@ class ElggCoreRegressionBugsTest extends ElggCoreUnitTest { 'ssl https://example.org/ test', 'ftp ftp://example.org/ test' => 'ftp ftp://example.org/ test', - 'google' => - 'google' + + 'web archive anchor google' => + 'web archive anchor google', + + 'single quotes already anchor yahoo' => + 'single quotes already anchor yahoo' ); foreach ($cases as $input => $output) { -- cgit v1.2.3 From 6fed48c68bd866149427c63782d5ce4db6ba80c4 Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Mon, 13 May 2013 22:39:42 -0400 Subject: Add test for = lookbehind --- engine/tests/regression/trac_bugs.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/tests') diff --git a/engine/tests/regression/trac_bugs.php b/engine/tests/regression/trac_bugs.php index b7654a794..7fdd51c27 100644 --- a/engine/tests/regression/trac_bugs.php +++ b/engine/tests/regression/trac_bugs.php @@ -287,8 +287,10 @@ class ElggCoreRegressionBugsTest extends ElggCoreUnitTest { 'web archive anchor google', 'single quotes already anchor yahoo' => - 'single quotes already anchor yahoo' + 'single quotes already anchor yahoo', + 'unquoted already anchor yahoo' => + 'unquoted already anchor yahoo', ); foreach ($cases as $input => $output) { $this->assertEqual($output, parse_urls($input)); -- cgit v1.2.3