Code Duplication    Length = 7-10 lines in 2 locations

tests/Date/CreateFromTimeTest.php 1 location

@@ 31-37 (lines=7) @@
28
        $this->assertDate($d, Date::now()->getYear(), Date::now()->getMonth(), Date::now()->getDay(), 23, 5, 21);
29
    }
30
31
    public function testCreateFromTimeWithHour()
32
    {
33
        $d = Date::createFromTime(22);
34
        $this->assertSame(22, $d->getHour());
35
        $this->assertSame(0, $d->getMinute());
36
        $this->assertSame(0, $d->getSecond());
37
    }
38
39
    public function testCreateFromTimeWithMinute()
40
    {

tests/Date/SettersTest.php 1 location

@@ 214-223 (lines=10) @@
211
        $this->assertSame('America/Vancouver', $d->getTimezoneName());
212
    }
213
214
    public function testSetTimeFromTimeString()
215
    {
216
        $d = Date::now();
217
218
        $d = $d->setTimeFromTimeString('09:15:30');
219
220
        $this->assertSame(9, $d->getHour());
221
        $this->assertSame(15, $d->getMinute());
222
        $this->assertSame(30, $d->getSecond());
223
    }
224
}
225