Code Duplication    Length = 17-17 lines in 3 locations

tests/unit/Message/OldPurchaseRequestTest.php 1 location

@@ 25-41 (lines=17) @@
22
23
    protected $purse = '62B97027-5260-1442-CF1A-7BDC16454400';
24
25
    public function setUp()
26
    {
27
        parent::setUp();
28
29
        $this->request = new OldPurchaseRequest($this->getHttpClient(), $this->getHttpRequest());
30
        $this->request->initialize([
31
            'purse' => $this->purse,
32
            'secret' => $this->secret,
33
            'returnUrl' => $this->returnUrl,
34
            'cancelUrl' => $this->cancelUrl,
35
            'notifyUrl' => $this->notifyUrl,
36
            'description' => $this->description,
37
            'transactionId' => $this->transactionId,
38
            'amount' => $this->amount,
39
            'currency' => $this->currency,
40
        ]);
41
    }
42
43
    public function testGetData()
44
    {

tests/unit/Message/OldPurchaseResponseTest.php 1 location

@@ 35-51 (lines=17) @@
32
    protected $currency = 'USD';
33
    protected $sign = 'C5sYWKMUZF1SDPTAGosZntOLC8Q2WWNvxx4bwy/gIwc=';
34
35
    public function setUp()
36
    {
37
        parent::setUp();
38
39
        $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest());
40
        $this->request->initialize([
41
            'purse' => $this->purse,
42
            'secret' => $this->secret,
43
            'returnUrl' => $this->returnUrl,
44
            'cancelUrl' => $this->cancelUrl,
45
            'notifyUrl' => $this->notifyUrl,
46
            'description' => $this->description,
47
            'transactionId' => $this->transactionId,
48
            'amount' => $this->amount,
49
            'currency' => $this->currency,
50
        ]);
51
    }
52
53
    public function testSuccess()
54
    {

tests/unit/Message/PurchaseRequestTest.php 1 location

@@ 34-50 (lines=17) @@
31
    protected $amount         = '14.65';
32
    protected $currency       = 'USD';
33
34
    public function setUp()
35
    {
36
        parent::setUp();
37
38
        $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest());
39
        $this->request->initialize([
40
            'purse'         => $this->purse,
41
            'secret'        => $this->secret,
42
            'returnUrl'     => $this->returnUrl,
43
            'cancelUrl'     => $this->cancelUrl,
44
            'notifyUrl'     => $this->notifyUrl,
45
            'description'   => $this->description,
46
            'transactionId' => $this->transactionId,
47
            'amount'        => $this->amount,
48
            'currency'      => $this->currency,
49
        ]);
50
    }
51
52
    public function testGetData()
53
    {