AddTestToModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
class AddTestToModule extends AddFileToModule
4
{
5
    protected $gitReplaceArray = array(
6
        'Module' => 'ShortUCFirstName',
7
    );
8
9
    protected $sourceLocation = 'mysite/template_files/ModuleTest.php';
10
11
12
    public function __construct($gitObject)
13
    {
14
        $this-> fileLocation = 'tests/' . $gitObject->ShortUCFirstName() . 'Test.php';
15
        parent::__construct($gitObject);
16
    }
17
}
18