Code Duplication    Length = 11-12 lines in 2 locations

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

@@ 961-971 (lines=11) @@
958
        $this->assertHtml($expected, $result);
959
    }
960
961
    public function testUploadTypeFileSrcNotValid()
962
    {
963
        $input = '[file src=foo]test.txt[/file]';
964
        $expected = [
965
            'div' => [
966
                'class' => 'richtext-imessage',
967
            ],
968
        ];
969
        $result = $this->_Parser->parse($input);
970
        $this->assertHtml($expected, $result);
971
    }
972
973
    public function testUploadTypeFileNoSource()
974
    {
@@ 988-999 (lines=12) @@
985
        $this->assertNotContains($needle, $result);
986
    }
987
988
    public function testCodeNestedTags()
989
    {
990
        $input = '[code][b]text[b][/code]';
991
        $expected = [
992
            [
993
                'div' => ['class' => 'geshi-wrapper']
994
            ],
995
            'preg:/.*?\[b\]text\[b\].*/',
996
        ];
997
        $result = $this->_Parser->parse($input);
998
        $this->assertHtml($expected, $result);
999
    }
1000
1001
    public function testCodeWhitespace()
1002
    {