IntegrationCest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 28
c 0
b 0
f 0
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
1
<?php
2
3
4
namespace SmartWeb\ModuleTesting\Codeception\Generator;
5
6
/**
7
 * Class IntegrationCest
8
 *
9
 * @package SmartWeb\ModuleTesting\Codeception\Generator
10
 */
11
class IntegrationCest extends BaseGenerator
12
{
13
    
14
    /**
15
     * @var string
16
     */
17
    protected $testsDir;
18
    
19
    /**
20
     * UnitTest constructor.
21
     *
22
     * @param array  $settings
23
     * @param string $name
24
     */
25
    public function __construct(array $settings, string $name)
26
    {
27
        parent::__construct('Integration', 'cest.integration');
28
        
29
        $this->settings = $settings;
30
        $this->name = $name;
31
        
32
        $this->settings['actor'] = 'tester';
33
        $this->settings['actorClassShort'] = $this->getShortClassName($this->settings['actorClass']);
34
        $this->settings['namespace'] = $this->getNamespaceForTest();
35
        $this->settings['name'] = $this->getShortClassName($this->name);
36
        $this->settings['baseClassShort'] = $this->getShortClassName($this->settings['baseClass']);
37
    }
38
}
39