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::provideMinimalPaymentRequest()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 24
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 24
rs 8.9713
cc 1
eloc 15
nc 1
nop 0
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