Code Duplication    Length = 13-13 lines in 4 locations

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

@@ 400-412 (lines=13) @@
397
    }
398
            */
399
400
    public function testEmailMailto()
401
    {
402
        $MO = $this->getMockBuilder('MailObfuscator')
403
            ->setMethods(['link'])
404
            ->getMock();
405
        $MO->expects($this->once(4))
406
            ->method('link')
407
            ->with('[email protected]', null);
408
        $this->_Helper->MailObfuscator = $MO;
409
410
        $input = '[email]mailto:[email protected][/email]';
411
        $this->_Parser->parse($input);
412
    }
413
414
    public function testEmailMailtoMask()
415
    {
@@ 414-426 (lines=13) @@
411
        $this->_Parser->parse($input);
412
    }
413
414
    public function testEmailMailtoMask()
415
    {
416
        $MO = $this->getMockBuilder('MailObfuscator')
417
            ->setMethods(['link'])
418
            ->getMock();
419
        $MO->expects($this->once(4))
420
            ->method('link')
421
            ->with('[email protected]', 'Mail');
422
        $this->_Helper->MailObfuscator = $MO;
423
424
        $input = '[email=mailto:[email protected]]Mail[/email]';
425
        $this->_Parser->parse($input);
426
    }
427
428
    public function testEmailNoMailto()
429
    {
@@ 428-440 (lines=13) @@
425
        $this->_Parser->parse($input);
426
    }
427
428
    public function testEmailNoMailto()
429
    {
430
        $MO = $this->getMockBuilder('MailObfuscator')
431
            ->setMethods(['link'])
432
            ->getMock();
433
        $MO->expects($this->once(4))
434
            ->method('link')
435
            ->with('[email protected]', null);
436
        $this->_Helper->MailObfuscator = $MO;
437
438
        $input = '[email][email protected][/email]';
439
        $this->_Parser->parse($input);
440
    }
441
442
    public function testEmailNoMailtoMask()
443
    {
@@ 442-454 (lines=13) @@
439
        $this->_Parser->parse($input);
440
    }
441
442
    public function testEmailNoMailtoMask()
443
    {
444
        $MO = $this->getMockBuilder('MailObfuscator')
445
            ->setMethods(['link'])
446
            ->getMock();
447
        $MO->expects($this->once(4))
448
            ->method('link')
449
            ->with('[email protected]', 'Mail');
450
        $this->_Helper->MailObfuscator = $MO;
451
452
        $input = '[[email protected]]Mail[/email]';
453
        $this->_Parser->parse($input);
454
    }
455
456
    public function testFlash()
457
    {