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

AbstractLeAcme2TestCase   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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
}