Completed
Push — develop ( 2faf16...be2583 )
by ANTHONIUS
15s queued 11s
created

TestCase::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the doyo/behat-coverage-extension project.
5
 *
6
 * (c) Anthonius Munthi <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Doyo\Behat\Coverage\Bridge\CodeCoverage;
15
16
class TestCase
17
{
18
    const RESULT_UNKNOWN = -1;
19
    const RESULT_PASSED  = 0;
20
    const RESULT_SKIPPED = 1;
21
    const RESULT_ERROR   = 5;
22
    const RESULT_FAILED  = 3;
23
24
    private $name;
25
26
    private $result;
27
28 13
    public function __construct($name)
29
    {
30 13
        $this->name = $name;
31
    }
32
33 8
    public function setResult($result)
34
    {
35 8
        $this->result = $result;
36
    }
37
38 4
    public function getResult()
39
    {
40 4
        return $this->result;
41
    }
42
43
    /**
44
     * @return string
45
     */
46 9
    public function getName()
47
    {
48 9
        return $this->name;
49
    }
50
}
51