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

DefaultPreset::get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 22
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 9.2
c 0
b 0
f 0
cc 1
eloc 15
nc 1
nop 0
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