Completed
Push — master ( 1d4aee...3ea9ea )
by Michael
05:02
created

DefaultPreset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 22 1
1
<?php
2
3
namespace SugaredRim\PHPUnit;
4
5
class DefaultPreset
6
{
7
    public static function get()
8
    {
9
        $config = new \stdClass();
10
11
        $config->bootstrap = 'vendor/autoload.php';
12
        $config->src = 'src';
13
        $config->tests = 'tests';
14
        $config->colors = true;
15
16
        $config->coverage = new \stdClass();
17
        $config->coverage->text = 'php://stdout';
18
        $config->coverage->clover = 'build/logs/clover.xml';
19
        $config->coverage->html = 'build/coverage-phpunit/';
20
21
        $config->sugared = new \stdClass();
22
        $config->sugared->debug = false;
23
        $config->sugared->{'coverage-text-show-uncovered-files'} = true;
24
25
        $config->sugared->listeners = [];
26
27
        return $config;
28
    }
29
}
30