Code Duplication    Length = 7-7 lines in 2 locations

tests/DateTimeTest.php 2 locations

@@ 82-88 (lines=7) @@
79
     *
80
     * @return void
81
     */
82
    public function isInRange()
83
    {
84
        $currentDateTime = new \DateTime('now');
85
        $startDateTime = new \DateTime('last year');
86
        $endDateTime = new \DateTime('next year');
87
        $this->assertTrue(DateTime::isInRange($currentDateTime, $startDateTime, $endDateTime));
88
    }
89
90
    /**
91
     * Verify error behavior of isInRange().
@@ 99-105 (lines=7) @@
96
     *
97
     * @return void
98
     */
99
    public function isInRangeWithInvalidRange()
100
    {
101
        $currentDateTime = new \DateTime('now');
102
        $startDateTime = new \DateTime('next year');
103
        $endDateTime = new \DateTime('last year');
104
        DateTime::isInRange($currentDateTime, $startDateTime, $endDateTime);
105
    }
106
107
    /**
108
     * Verify basic behavior of asAgoString().