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

TestWarningTest::testToString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
c 1
b 0
f 1
dl 0
loc 4
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 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