Passed
Push — master ( b0febc...99b0a5 )
by Jakub
01:55
created

SkippedTestTest::testToString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace MyTester;
5
6
use MyTester\Attributes\TestSuite;
7
8
/**
9
 * Test suite for class SkippedTest
10
 *
11
 * @author Jakub Konečný
12
 */
13
#[TestSuite("SkippedTestTest")]
14
final class SkippedTestTest extends TestCase
15
{
16
    public function testToString(): void
17
    {
18
        $skippedTest = new SkippedTest("Test 1", "");
19
        $this->assertSame("Skipped Test 1\n", (string) $skippedTest);
20
21
        $skippedTest = new SkippedTest("Test 2", "Reason");
22
        $this->assertSame("Skipped Test 2: Reason\n", (string) $skippedTest);
23
    }
24
}
25