Code Duplication    Length = 7-7 lines in 2 locations

tests/unit/YahooShoppingJp/Request/UpdateOrderShippingStatusRequestTest.php 2 locations

@@ 343-349 (lines=7) @@
340
     * @test
341
     * @expectedException \LogicException
342
     */
343
    public function it_cannot_set_ship_date_more_than_once()
344
    {
345
        $request = new UpdateOrderShippingStatusRequest;
346
        $this->assertSame($request, $request->setShipDate(new DateTimeImmutable('2017-04-11 20:00:00')));
347
348
        $request->setShipDate(new DateTimeImmutable('2017-04-11 21:00:00'));
349
    }
350
351
    /**
352
     * @test
@@ 375-381 (lines=7) @@
372
     * @test
373
     * @expectedException \LogicException
374
     */
375
    public function it_cannot_set_arrival_date_more_than_once()
376
    {
377
        $request = new UpdateOrderShippingStatusRequest;
378
        $this->assertSame($request, $request->setArrivalDate(new DateTimeImmutable('2017-04-11 20:00:00')));
379
380
        $request->setArrivalDate(new DateTimeImmutable('2017-04-11 21:00:00'));
381
    }
382
}
383