Skip to content

Commit ba0e16f

Browse files
committed
Fix: Sleep in method with Before attribute
1 parent d200b1a commit ba0e16f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

psalm-baseline.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@
325325
<PossiblyUnusedMethod>
326326
<code>sleepWithAfterAttribute</code>
327327
<code>sleepWithAfterClassAttribute</code>
328+
<code>sleepWithBeforeAttribute</code>
328329
</PossiblyUnusedMethod>
329330
</file>
330331
<file src="test/Fixture/Sleeper.php">

test/EndToEnd/Version11/TestMethod/WithRunInSeparateProcessAttribute/SleeperTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ protected function tearDown(): void
4949
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
5050
}
5151

52+
#[Framework\Attributes\Before]
53+
public function sleepWithBeforeAttribute(): void
54+
{
55+
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
56+
}
57+
5258
#[Framework\Attributes\After]
5359
public function sleepWithAfterAttribute(): void
5460
{

0 commit comments

Comments
 (0)