Code Duplication    Length = 17-19 lines in 3 locations

testing/src/FlexiPeeHP/FlexiBeeROTest.php 3 locations

@@ 435-452 (lines=18) @@
432
    /**
433
     * @covers FlexiPeeHP\FlexiBeeRO::getResponseEvidence
434
     */
435
    public function testGetResponseEvidence()
436
    {
437
        $responseEvidence = $this->object->getResponseEvidence();
438
        switch ($this->object->getEvidence()) {
439
            case '':
440
            case 'c':
441
            case 'hooks':
442
            case 'status':
443
            case 'changes':
444
            case 'nastaveni':
445
            case 'evidence-list':
446
                break;
447
            default:
448
                $this->assertEquals($this->object->getEvidence(),
449
                    $responseEvidence);
450
                break;
451
        }
452
    }
453
454
    /**
455
     * @covers FlexiPeeHP\FlexiBeeRO::getLastInsertedId
@@ 761-779 (lines=19) @@
758
    /**
759
     * @covers FlexiPeeHP\FlexiBeeRO::getGlobalVersion
760
     */
761
    public function testGetGlobalVersion()
762
    {
763
        switch ($this->object->getEvidence()) {
764
            case '':
765
            case 'c':
766
            case 'hooks':
767
            case 'status':
768
            case 'changes':
769
            case 'nastaveni':
770
            case 'evidence-list':
771
                $this->object->getGlobalVersion();
772
                break;
773
            default:
774
                $this->assertInternalType("int",
775
                    $this->object->getGlobalVersion(),
776
                    'error obtaining of GlobalVersion');
777
                break;
778
        }
779
    }
780
781
    /**
782
     * @covers FlexiPeeHP\FlexiBeeRO::getApiURL
@@ 1122-1138 (lines=17) @@
1119
     * @covers FlexiPeeHP\FlexiBeeRO::getVazby
1120
     * @expectedException \Exception
1121
     */
1122
    public function testGetVazby()
1123
    {
1124
        switch ($this->object->getEvidence()) {
1125
            case '':
1126
            case 'c':
1127
            case 'hooks':
1128
            case 'status':
1129
            case 'changes':
1130
            case 'nastaveni':
1131
            case 'evidence-list':
1132
                break;
1133
            default:
1134
                $this->object->getVazby($this->object->getMyKey());
1135
                break;
1136
        }
1137
        $this->object->getVazby();
1138
    }
1139
1140
    /**
1141
     * @covers FlexiPeeHP\FlexiBeeRO::evidenceUrlWithSuffix