Passed
Push — master ( 9acfaa...693f5f )
by Jakub
01:54
created

PercentFormatterTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 5
c 1
b 0
f 1
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRender() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace MyTester\CodeCoverage;
5
6
use MyTester\Attributes\TestSuite;
7
use MyTester\TestCase;
8
9
/**
10
 * Test suite for class PercentFormatter
11
 *
12
 * @author Jakub Konečný
13
 */
14
#[TestSuite("Code coverage percent formatter")]
15
class PercentFormatterTest extends TestCase
16
{
17
    public function testRender(): void
18
    {
19
        $formatter = new PercentFormatter();
20
        $result = $formatter->render((new DummyEngine())->collect());
21
        $this->assertSame("Calculating code coverage... 62% covered\n", $result);
22
    }
23
}
24