Code Duplication    Length = 7-7 lines in 2 locations

tests/PhpSpreadsheetTests/Calculation/DateTimeTest.php 2 locations

@@ 56-62 (lines=7) @@
53
        $this->assertEquals($result->format('d-M-Y'), '31-Jan-2012');
54
    }
55
56
    public function testDATEwith1904Calendar()
57
    {
58
        Date::setExcelCalendar(Date::CALENDAR_MAC_1904);
59
        $result = DateTime::DATE(1918, 11, 11);
60
        Date::setExcelCalendar(Date::CALENDAR_WINDOWS_1900);
61
        $this->assertEquals($result, 5428);
62
    }
63
64
    public function testDATEwith1904CalendarError()
65
    {
@@ 64-70 (lines=7) @@
61
        $this->assertEquals($result, 5428);
62
    }
63
64
    public function testDATEwith1904CalendarError()
65
    {
66
        Date::setExcelCalendar(Date::CALENDAR_MAC_1904);
67
        $result = DateTime::DATE(1901, 1, 31);
68
        Date::setExcelCalendar(Date::CALENDAR_WINDOWS_1900);
69
        $this->assertEquals($result, '#NUM!');
70
    }
71
72
    /**
73
     * @dataProvider providerDATEVALUE