Code Duplication    Length = 8-8 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 = static::$xsollaClient->ListPaymentAccounts(array(
13
            'project_id' => static::$projectId,
14
            'user_id' => static::$userId,
15
        ));
16
        static::assertInternalType('array', $response);
17
    }
18
19
    public function testChargePaymentAccount()
20
    {

tests/Integration/API/SubscriptionsTest.php 2 locations

@@ 156-163 (lines=8) @@
153
        static::markTestIncomplete('We haven\'t active subscriptions in test project.');
154
    }
155
156
    public function testListSubscriptions()
157
    {
158
        $response = static::$xsollaClient->ListSubscriptions(array(
159
            'project_id' => static::$projectId,
160
            'user_id' => static::$userId,
161
        ));
162
        static::assertInternalType('array', $response);
163
    }
164
165
    public function testListUserSubscriptionPayments()
166
    {
@@ 165-172 (lines=8) @@
162
        static::assertInternalType('array', $response);
163
    }
164
165
    public function testListUserSubscriptionPayments()
166
    {
167
        $response = static::$xsollaClient->ListUserSubscriptionPayments(array(
168
            'project_id' => static::$projectId,
169
            'user_id' => static::$userId,
170
        ));
171
        static::assertInternalType('array', $response);
172
    }
173
174
    public function testListSubscriptionPayments()
175
    {

tests/Integration/API/WalletTest.php 1 location

@@ 18-25 (lines=8) @@
15
        static::markTestIncomplete('Delete user API method not implemented yet. We should not create new users infinitely.');
16
    }
17
18
    public function testGetWalletUser()
19
    {
20
        $response = static::$xsollaClient->GetWalletUser(array(
21
            'project_id' => static::$projectId,
22
            'user_id' => static::$userId,
23
        ));
24
        static::assertInternalType('array', $response);
25
    }
26
27
    public function testUpdateWalletUser()
28
    {