Code Duplication    Length = 9-9 lines in 3 locations

tests/PhpSpreadsheetTests/Reader/XEEValidatorTest.php 3 locations

@@ 48-56 (lines=9) @@
45
        self::assertEquals($expectedResult, $result);
46
    }
47
48
    public function providerInvalidXML()
49
    {
50
        $tests = [];
51
        foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestInvalidUTF*.xml') as $file) {
52
            $tests[basename($file)] = [realpath($file)];
53
        }
54
55
        return $tests;
56
    }
57
58
    /**
59
     * @dataProvider providerInvalidSimpleXML
@@ 70-78 (lines=9) @@
67
        $xmlReader->trySimpleXMLLoadString($filename);
68
    }
69
70
    public function providerInvalidSimpleXML()
71
    {
72
        $tests = [];
73
        foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestInvalidSimpleXML*.xml') as $file) {
74
            $tests[basename($file)] = [realpath($file)];
75
        }
76
77
        return $tests;
78
    }
79
80
    /**
81
     * @dataProvider providerValidXML
@@ 93-101 (lines=9) @@
90
        self::assertEquals($expectedResult, $result);
91
    }
92
93
    public function providerValidXML()
94
    {
95
        $tests = [];
96
        foreach (glob(__DIR__ . '/../../data/Reader/XEE/XEETestValid*.xml') as $file) {
97
            $tests[basename($file)] = [realpath($file), file_get_contents($file)];
98
        }
99
100
        return $tests;
101
    }
102
103
    /**
104
     * Check if it can read XML Hyperlink correctly.