Issues (77)

src/LE_ACME2Tests/AbstractLeAcme2TestCase.php (1 issue)

Labels
Severity
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;
10
    protected $_orderSubjects = [];
11
    protected $_umlautsOrderSubjects = [];
12
13
    public function __construct(string $name) {
14
15
        $this->_accountEmail = 'le_acme2_php' . phpversion() . '[email protected]';
16
17
        parent::__construct($name);
18
19
        $this->_orderSubjects[] = 'test.de';
20
21
        $this->_umlautsOrderSubjects[] = 'xn--test--kra0kxb.de'; // test-üäö.de
22
23
        LE_ACME2\Connector\Connector::getInstance()->useStagingServer(true);
0 ignored issues
show
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

23
        LE_ACME2\Connector\Connector::getInstance()->/** @scrutinizer ignore-call */ useStagingServer(true);
Loading history...
24
    }
25
}