InitialTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 4
c 1
b 0
f 1
dl 0
loc 9
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testConfigDefaultAccount() 0 2 1
A setUp() 0 2 1
1
<?php
2
/*
3
* File: InitialTest.php
4
* Category: test
5
* Author: M.Goldenbaum
6
* Created: 02.01.21 04:42
7
* Updated: -
8
*
9
* Description:
10
*  -
11
*/
12
13
use PHPUnit\Framework\TestCase;
14
use \Webklex\PHPIMAP\ClientManager;
0 ignored issues
show
Bug introduced by
The type \Webklex\PHPIMAP\ClientManager was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
16
class InitialTest extends TestCase {
17
    protected $cm;
18
19
    public function setUp() {
20
        $this->cm = new ClientManager();
21
    }
22
23
    public function testConfigDefaultAccount() {
24
        $this->assertEquals("default", ClientManager::get("default"));
25
    }
26
}