Code Duplication    Length = 8-8 lines in 2 locations

tests/Resource/PaymentTest.php 2 locations

@@ 31-38 (lines=8) @@
28
    /**
29
     * MoipTest creating a billet payment.
30
     */
31
    public function testBillet()
32
    {
33
        $this->mockHttpSession($this->body_order);
34
        $order = $this->createOrder()->create();
35
        $this->mockHttpSession($this->body_billet_pay);
36
        $payment = $order->payments()->setBoleto(new \DateTime('today +1day'), 'http://dev.moip.com.br/images/logo-header-moip.png')->execute();
37
        $this->assertNotEmpty($payment->getFundingInstrument()->boleto);
38
    }
39
40
    public function testCreditCardPCIStore()
41
    {
@@ 84-91 (lines=8) @@
81
    /**
82
     * MoipTest creating a billet multipayment.
83
     */
84
    public function testMultipaymentBillet()
85
    {
86
        $this->mockHttpSession($this->body_multiorder);
87
        $order = $this->createMultiorder()->create();
88
        $this->mockHttpSession($this->body_billet_multipay);
89
        $payment = $order->multipayments()->setBoleto(new \DateTime('today +1day'), 'http://dev.moip.com.br/images/logo-header-moip.png')->execute();
90
        $this->assertNotEmpty($payment->getFundingInstrument()->boleto);
91
    }
92
93
    public function testCapturePreAuthorizedPayment()
94
    {