GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( e176a0...0ea391 )
by Jelte
02:11
created

TestCase   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 3
dl 0
loc 28
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B provideMinimalPaymentRequest() 0 24 1
1
<?php
2
/*
3
 * This file is part of the Marlon Ogone package.
4
 *
5
 * (c) Marlon BVBA <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Ogone\Tests;
12
13
use Ogone\Tests\ShaComposer\FakeShaComposer;
14
use Ogone\Ecommerce\EcommercePaymentRequest;
15
16
abstract class TestCase extends \PHPUnit_Framework_TestCase
17
{
18
    /** @return EcommercePaymentRequest */
19
    protected function provideMinimalPaymentRequest()
20
    {
21
        $paymentRequest = new EcommercePaymentRequest(new FakeShaComposer);
22
        $paymentRequest->setPspid('123456789');
23
        $paymentRequest->setOrderid('987654321');
24
        $paymentRequest->setOgoneUri(EcommercePaymentRequest::TEST);
25
26
        // minimal required fields for ogone (together with pspid and orderid)
27
        $paymentRequest->setCurrency("EUR");
28
        $paymentRequest->setAmount(100);
29
30
        // these fields are actually optional but are good practice to be included
31
        $paymentRequest->setCustomername("Louis XIV");
32
        $paymentRequest->setOwnerAddress("1, Rue du Palais");
33
        $paymentRequest->setOwnerTown("Versailles");
34
        $paymentRequest->setOwnerZip('2300');
35
        $paymentRequest->setOwnerCountry("FR");
36
        $paymentRequest->setEmail("[email protected]");
37
38
        // this field is mandatory in some european countries
39
        $paymentRequest->setSecure();
40
41
        return $paymentRequest;
42
    }
43
}
44