TestHelper   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 37
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTest() 0 4 1
A setTest() 0 4 1
1
<?php
2
namespace Pumpkin\Test;
3
4
/**
5
 * Class TestHelper
6
 * @package Pumpkin
7
 * @author Raphaël Lefebvre <[email protected]>
8
 */
9
abstract class TestHelper
0 ignored issues
show
Coding Style introduced by
TestHelper does not seem to conform to the naming convention (^Abstract|Factory$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
10
{
11
    /**
12
     * @var Test
13
     */
14
    private $test;
15
16
    /**
17
     * Constructor.
18
     *
19
     * @param Test $test
20
     */
21 22
    public function __construct(Test $test)
22
    {
23 22
        $this->setTest($test);
24 22
    }
25
26
    /**
27
     * Getter of $test
28
     *
29
     * @return \Pumpkin\Test\Test
30
     */
31 22
    public function getTest()
32
    {
33 22
        return $this->test;
34
    }
35
36
    /**
37
     * Setter of $test
38
     *
39
     * @param Test $test
40
     */
41 22
    private function setTest(Test $test)
42
    {
43 22
        $this->test = $test;
44 22
    }
45
}
46