Code Duplication    Length = 12-13 lines in 2 locations

tests/unit/Message/PurchaseRequestTest.php 1 location

@@ 51-63 (lines=13) @@
48
        ]);
49
    }
50
51
    public function testGetData()
52
    {
53
        $data = $this->request->getData();
54
55
        $this->assertSame($this->purse,         $data['ECM_PAYEE_ID']);
56
        $this->assertSame($this->returnUrl,     $data['ECM_SUCCESS_URL']);
57
        $this->assertSame($this->cancelUrl,     $data['ECM_FAIL_URL']);
58
        $this->assertSame($this->notifyUrl,     $data['ECM_RESULT_URL']);
59
        $this->assertSame($this->description,   $data['ECM_PURCH_DESC']);
60
        $this->assertSame($this->transactionId, $data['ECM_INV_NO']);
61
        $this->assertSame($this->amount,        $data['ECM_ITEM_COST']);
62
        $this->assertSame($this->quantity,      $data['ECM_QTY']);
63
    }
64
65
    public function testSendData()
66
    {

tests/unit/Message/CompletePurchaseRequestTest.php 1 location

@@ 56-67 (lines=12) @@
53
        ]);
54
    }
55
56
    public function testGetData()
57
    {
58
        $data = $this->request->getData();
59
60
        $this->assertSame($this->description,   $data['ECM_PURCH_DESC']);
61
        $this->assertSame($this->transactionId, $data['ECM_INV_NO']);
62
        $this->assertSame($this->hash,          $data['ECM_HASH']);
63
        $this->assertSame($this->amount,        $data['ECM_PAYMENT_AMOUNT']);
64
        $this->assertSame($this->timestamp,     $data['ECM_TRANS_DATE']);
65
        $this->assertSame($this->payer,         $data['ECM_PAYER_ID']);
66
        $this->assertSame($this->purse,         $data['ECM_PAYEE_ID']);
67
    }
68
69
    public function testSendData()
70
    {