Code Duplication    Length = 13-13 lines in 4 locations

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

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