Code Duplication    Length = 7-7 lines in 6 locations

plugins/BbcodeParser/tests/TestCase/Lib/BbcodeParserTest.php 6 locations

@@ 336-342 (lines=7) @@
333
        $this->assertHtml($expected, $result);
334
    }
335
336
    public function testLinkEmptyUrl()
337
    {
338
        $input = '[url=][/url]';
339
        $expected = "<a href=''></a>";
340
        $result = $this->_Parser->parse($input);
341
        $this->assertEquals($expected, $result);
342
    }
343
344
    public function testEditMarker()
345
    {
@@ 1001-1007 (lines=7) @@
998
        $this->assertHtml($expected, $result);
999
    }
1000
1001
    public function testCodeWhitespace()
1002
    {
1003
        $input = "[code]\ntest\n[/code]";
1004
        $expected = "/>test</";
1005
        $result = $this->_Parser->parse($input);
1006
        $this->assertRegExp($expected, $result);
1007
    }
1008
1009
    public function testCodeSimple()
1010
    {
@@ 1009-1015 (lines=7) @@
1006
        $this->assertRegExp($expected, $result);
1007
    }
1008
1009
    public function testCodeSimple()
1010
    {
1011
        $input = '[code]text[/code]';
1012
        $result = $this->_Parser->parse($input);
1013
        $expected = 'lang="text"';
1014
        $this->assertContains($expected, $result);
1015
    }
1016
1017
    public function testCodeLangAttribute()
1018
    {
@@ 1017-1023 (lines=7) @@
1014
        $this->assertContains($expected, $result);
1015
    }
1016
1017
    public function testCodeLangAttribute()
1018
    {
1019
        $input = '[code=php]text[/code]';
1020
        $result = $this->_Parser->parse($input);
1021
        $expected = 'lang="php"';
1022
        $this->assertContains($expected, $result);
1023
    }
1024
1025
    /**
1026
     * tests that citation marks are not replaced in code-blocks
@@ 1087-1093 (lines=7) @@
1084
        Configure::write('Saito.Settings.bbcode_img', $bbcodeImg);
1085
    }
1086
1087
    public function testHr()
1088
    {
1089
        $input = '[hr][hr]';
1090
        $expected = '<hr><hr>';
1091
        $result = $this->_Parser->parse($input);
1092
        $this->assertEquals($result, $expected);
1093
    }
1094
1095
    public function testHrShort()
1096
    {
@@ 1095-1101 (lines=7) @@
1092
        $this->assertEquals($result, $expected);
1093
    }
1094
1095
    public function testHrShort()
1096
    {
1097
        $input = '[---][---]';
1098
        $expected = '<hr><hr>';
1099
        $result = $this->_Parser->parse($input);
1100
        $this->assertEquals($result, $expected);
1101
    }
1102
1103
    public function testEmbedNoReplacement()
1104
    {