Code Duplication    Length = 8-8 lines in 4 locations

tests/Date/DiffTest.php 4 locations

@@ 368-375 (lines=8) @@
365
        );
366
    }
367
368
    public function testBug188DiffWithSameDates()
369
    {
370
        $start = Date::create(2014, 10, 8, 15, 20, 0);
371
        $end = $start->copy();
372
373
        $this->assertSame(0, $start->diffInDays($end));
374
        $this->assertSame(0, $start->diffInWeekdays($end));
375
    }
376
377
    public function testBug188DiffWithDatesOnlyHoursApart()
378
    {
@@ 377-384 (lines=8) @@
374
        $this->assertSame(0, $start->diffInWeekdays($end));
375
    }
376
377
    public function testBug188DiffWithDatesOnlyHoursApart()
378
    {
379
        $start = Date::create(2014, 10, 8, 15, 20, 0);
380
        $end = $start->copy();
381
382
        $this->assertSame(0, $start->diffInDays($end));
383
        $this->assertSame(0, $start->diffInWeekdays($end));
384
    }
385
386
    public function testBug188DiffWithSameDates1DayApart()
387
    {
@@ 386-393 (lines=8) @@
383
        $this->assertSame(0, $start->diffInWeekdays($end));
384
    }
385
386
    public function testBug188DiffWithSameDates1DayApart()
387
    {
388
        $start = Date::create(2014, 10, 8, 15, 20, 0);
389
        $end = $start->copy()->addDay();
390
391
        $this->assertSame(1, $start->diffInDays($end));
392
        $this->assertSame(1, $start->diffInWeekdays($end));
393
    }
394
395
    public function testBug188DiffWithDatesOnTheWeekend()
396
    {
@@ 395-402 (lines=8) @@
392
        $this->assertSame(1, $start->diffInWeekdays($end));
393
    }
394
395
    public function testBug188DiffWithDatesOnTheWeekend()
396
    {
397
        $start = Date::create(2014, 1, 1, 0, 0, 0)->next(Date::SATURDAY);
398
        $end = $start->addDay();
399
400
        $this->assertSame(1, $start->diffInDays($end));
401
        $this->assertSame(0, $start->diffInWeekdays($end));
402
    }
403
404
    public function testDiffInWeekdaysPositive()
405
    {