Test Failed
Push — master ( a24517...57a539 )
by Fabian
02:46
created

AbstractLeAcme2TestCase::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
namespace LE_ACME2Tests;
3
4
use PHPUnit\Framework\TestCase;
5
use LE_ACME2;
6
7
abstract class AbstractLeAcme2TestCase extends EnhancedTestCase {
8
9
    protected $_accountEmail = '[email protected]';
10
    protected $_orderSubjects = [];
11
    protected $_umlautsOrderSubjects = [];
12
13
    public function __construct(string $name) {
14
        parent::__construct($name);
15
16
        $this->_orderSubjects[] = 'test.de';
17
18
        $this->_umlautsOrderSubjects[] = 'xn--test--kra0kxb.de'; // test-üäö.de
19
20
        LE_ACME2\Connector\Connector::getInstance()->useStagingServer(true);
0 ignored issues
show
Bug introduced by
It seems like useStagingServer() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

20
        LE_ACME2\Connector\Connector::getInstance()->/** @scrutinizer ignore-call */ useStagingServer(true);
Loading history...
21
    }
22
}