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

TestWarningTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testToString() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace MyTester;
5
6
use MyTester\Attributes\TestSuite;
7
8
/**
9
 * Test suite for class TestWarning
10
 *
11
 * @author Jakub Konečný
12
 */
13
#[TestSuite("TestWarningTest")]
14
final class TestWarningTest extends TestCase
15
{
16
    public function testToString(): void
17
    {
18
        $testWarning = new TestWarning("Test 1", "Text");
19
        $this->assertSame("Test 1 passed with warning: Text", (string) $testWarning);
20
    }
21
}
22