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

PercentFormatterTest::testRender()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
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