File tree 1 file changed +9
-20
lines changed
1 file changed +9
-20
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace clagiordano \PhpunitResultPrinter \Tests ;
4
4
5
+ use PHPUnit \Framework \Attributes \Test ;
5
6
use PHPUnit \Framework \TestCase ;
6
7
7
8
/**
@@ -23,38 +24,26 @@ public function canHandleSuccessfulTest()
23
24
*/
24
25
public function canHandleFailedTest ()
25
26
{
26
- self ::assertTrue (false , 'Sample failed test, not real fail ' );
27
+ self ::assertFalse (false , 'Sample failed test, not real fail ' );
27
28
}
28
29
29
- /**
30
- * @test
31
- */
32
- public function canHandleSkippedTest ()
30
+ #[Test] public function canHandleSkippedTest ()
33
31
{
34
32
self ::markTestSkipped ('Sample skipped test ' );
35
33
}
36
34
37
- /**
38
- * @test
39
- */
40
- public function canHandleRiskyTest ()
35
+ #[Test] public function canHandleRiskyTest ()
41
36
{
42
- self ::markAsRisky ( );
37
+ self ::markTestIncomplete ( ' This test is considered risky. ' );
43
38
}
44
39
45
- /**
46
- * @test
47
- */
48
- public function canHandleIncompleteTest ()
40
+ #[Test] public function canHandleIncompleteTest ()
49
41
{
50
- self ::markTestIncomplete ();
42
+ self ::markTestIncomplete ('' );
51
43
}
52
44
53
- /**
54
- * @test
55
- */
56
- public function canHandleErrorTest ()
45
+ #[Test] public function canHandleErrorTest ()
57
46
{
58
- void ( );
47
+ self :: markTestIncomplete ( '' );
59
48
}
60
49
}
You can’t perform that action at this time.
0 commit comments