Code Duplication    Length = 9-9 lines in 3 locations

tests/PhpSpreadsheetTests/Reader/XEEValidatorTest.php 3 locations

@@ 26-34 (lines=9) @@
23
        $this->assertEquals($expectedResult, $result);
24
    }
25
26
    public function providerInvalidXML()
27
    {
28
        $tests = [];
29
        foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestInvalidUTF*.xml') as $file) {
30
            $tests[basename($file)] = [realpath($file)];
31
        }
32
33
        return $tests;
34
    }
35
36
    /**
37
     * @dataProvider providerInvalidSimpleXML
@@ 48-56 (lines=9) @@
45
        $xmlReader->trySimpleXMLLoadString($filename);
46
    }
47
48
    public function providerInvalidSimpleXML()
49
    {
50
        $tests = [];
51
        foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestInvalidSimpleXML*.xml') as $file) {
52
            $tests[basename($file)] = [realpath($file)];
53
        }
54
55
        return $tests;
56
    }
57
58
    /**
59
     * @dataProvider providerValidXML
@@ 71-79 (lines=9) @@
68
        $this->assertEquals($expectedResult, $result);
69
    }
70
71
    public function providerValidXML()
72
    {
73
        $tests = [];
74
        foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestValid*.xml') as $file) {
75
            $tests[basename($file)] = [realpath($file), file_get_contents($file)];
76
        }
77
78
        return $tests;
79
    }
80
}
81