Code Duplication    Length = 12-12 lines in 2 locations

tests/MoMoTest.php 2 locations

@@ 85-96 (lines=12) @@
82
     * @depends testPurchase
83
     * @depends testQueryDR
84
     */
85
    public function testRefund()
86
    {
87
        list($orderId, $requestId) = $this->testPurchase();
88
        $responseData = $this->refund([
89
            'orderId' => $orderId,
90
            'transId' => $orderId,
91
            'amount' => 10000,
92
            'requestId' => $requestId
93
        ]);
94
95
        $this->assertFalse($responseData->getIsOk());
96
    }
97
98
    /**
99
     * @expectedException \yii\base\InvalidConfigException
@@ 111-122 (lines=12) @@
108
    /**
109
     * @depends testRefund
110
     */
111
    public function testQueryRefund()
112
    {
113
        list($orderId, $requestId) = $this->testPurchase();
114
        $responseData = $this->queryRefund([
115
            'orderId' => $orderId,
116
            'transId' => $orderId,
117
            'amount' => 10000,
118
            'requestId' => $requestId
119
        ]);
120
121
        $this->assertFalse($responseData->getIsOk());
122
    }
123
124
125
    /**