Code Duplication    Length = 18-19 lines in 2 locations

tests/unit/Message/PurchaseResponseTest.php 1 location

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

tests/unit/Message/PurchaseRequestTest.php 1 location

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