Passed
Branch master (fc5382)
by Fabian
03:13
created

AbstractTest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 8
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace LE_ACME2Tests;
3
4
use PHPUnit\Framework\TestCase;
5
use LE_ACME2;
6
7
abstract class AbstractTest extends TestCase {
8
9
    protected $_accountEmail = '[email protected]';
10
    protected $_orderSubjects = [];
11
    protected $_umlautsOrderSubjects = [];
12
13
    public function __construct() {
14
        parent::__construct();
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
}