Completed
Push — master ( 2f04be...9682f1 )
by Steevan
01:49 queued 18s
created

TestOutput   A

Complexity

Total Complexity 13

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

13 Methods

Rating   Name   Duplication   Size   Complexity  
A setFormatter() 0 3 1
A getFormatter() 0 4 1
A setDecorated() 0 3 1
A isDecorated() 0 4 1
A setVerbosity() 0 3 1
A getVerbosity() 0 4 1
A isQuiet() 0 4 1
A isVerbose() 0 4 1
A isVeryVerbose() 0 4 1
A isDebug() 0 4 1
A writeln() 0 4 1
A write() 0 4 1
A getOutput() 0 4 1
1
<?php
2
3
namespace Steevanb\PhpBacktrace\Tests\Classes;
4
5
use Symfony\Component\Console\Formatter\OutputFormatter;
6
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
class TestOutput implements OutputInterface
10
{
11
    /** @var string */
12
    protected $output = '';
13
14
    public function setFormatter(OutputFormatterInterface $formatter)
15
    {
16
    }
17
18
    public function getFormatter()
19
    {
20
        return new OutputFormatter();
21
    }
22
23
    public function setDecorated($decorated)
24
    {
25
    }
26
27
    public function isDecorated()
28
    {
29
        return false;
30
    }
31
32
    public function setVerbosity($level)
33
    {
34
    }
35
36
    public function getVerbosity()
37
    {
38
        return static::VERBOSITY_QUIET;
39
    }
40
41
    public function isQuiet()
42
    {
43
        return true;
44
    }
45
46
    public function isVerbose()
47
    {
48
        return false;
49
    }
50
51
    public function isVeryVerbose()
52
    {
53
        return false;
54
    }
55
56
    public function isDebug()
57
    {
58
        return false;
59
    }
60
61
    public function writeln($messages, $options = self::OUTPUT_NORMAL)
62
    {
63
        $this->output .= $messages . "\n";
64
    }
65
66
    public function write($messages, $newline = false, $options = self::OUTPUT_NORMAL)
67
    {
68
        $this->output .= $messages;
69
    }
70
71
    /** @return string */
72
    public function getOutput()
73
    {
74
        return $this->output;
75
    }
76
}
77