From 8d4254676ac25d697adada8db294eb7d16ab214b Mon Sep 17 00:00:00 2001 From: Andrew Kovalyov Date: Tue, 5 May 2015 12:39:53 +0200 Subject: [PATCH] Add test case to cover configuration --- Tests/FeatureTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Tests/FeatureTest.php b/Tests/FeatureTest.php index a606d74..4db829e 100644 --- a/Tests/FeatureTest.php +++ b/Tests/FeatureTest.php @@ -803,4 +803,15 @@ EOF; $this->assertEquals($expectedResult, $parser->transform($text)); } + + /** + * @depends testParser + */ + public function testEscapedLink($parser) { + $link = "http://images.google.com/images?num=30&q=larry+bird"; + + $expectedResult = "

http://images.google.com/images?num=30&q=larry+bird

\n"; + + $this->assertEquals($expectedResult, $parser->transform($link)); + } }