Code Duplication    Length = 8-11 lines in 4 locations

tests/Integration/API/PaymentAccountsTest.php 1 location

@@ 10-17 (lines=8) @@
7
 */
8
class PaymentAccountsTest extends AbstractAPITest
9
{
10
    public function testListPaymentAccounts()
11
    {
12
        $response = $this->xsollaClient->ListPaymentAccounts(array(
13
            'project_id' => $this->projectId,
14
            'user_id' => 'Game User',
15
        ));
16
        static::assertInternalType('array', $response);
17
    }
18
19
    public function testChargePaymentAccount()
20
    {

tests/Integration/API/WalletTest.php 2 locations

@@ 40-48 (lines=9) @@
37
        ));
38
    }
39
40
    public function testListWalletUsers()
41
    {
42
        $response = $this->xsollaClient->ListWalletUsers(array(
43
            'project_id' => $this->projectId,
44
            'limit' => 1,
45
            'offset' => 0,
46
        ));
47
        static::assertInternalType('array', $response);
48
    }
49
50
    public function testListWalletUserOperations()
51
    {
@@ 50-59 (lines=10) @@
47
        static::assertInternalType('array', $response);
48
    }
49
50
    public function testListWalletUserOperations()
51
    {
52
        $response = $this->xsollaClient->ListWalletUserOperations(array(
53
            'project_id' => $this->projectId,
54
            'user_id' => self::USER_ID,
55
            'datetime_from' => '2015-01-01T00:00:00 UTC',
56
            'datetime_to' => '2016-01-01T00:00:00 UTC',
57
        ));
58
        static::assertInternalType('array', $response);
59
    }
60
61
    public function testRechargeWalletUserBalance()
62
    {

tests/Integration/API/CouponsTest.php 1 location

@@ 19-29 (lines=11) @@
16
        static::assertInternalType('array', $actualCouponData);
17
    }
18
19
    public function testRedeemCoupon()
20
    {
21
        $actualCouponData = $this->xsollaClient->RedeemCoupon(array(
22
            'project_id' => $this->projectId,
23
            'code' => $_SERVER['COUPON_CODE'],
24
            'request' => array(
25
                'user_id' => 1,
26
            ),
27
        ));
28
        static::assertInternalType('array', $actualCouponData);
29
    }
30
}
31