File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 23
23
use function memory_get_usage ;
24
24
use function sprintf ;
25
25
26
- use const PHP_VERSION_ID ;
27
-
28
26
/**
29
27
* Note: we need to implement TestListener, because the hook API is not allowing
30
28
* us to interact with test suite instances. This means that the entire package
@@ -52,19 +50,13 @@ public function startTestSuite(TestSuite $suite): void
52
50
public function executeBeforeTest (string $ test ): void
53
51
{
54
52
gc_collect_cycles ();
55
- if (PHP_VERSION_ID < 80100 ) {
56
- gc_collect_cycles ();
57
- }
58
53
59
54
$ this ->preTestMemoryUsages [$ test ][] = memory_get_usage ();
60
55
}
61
56
62
57
public function executeAfterSuccessfulTest (string $ test , float $ time ): void
63
58
{
64
59
gc_collect_cycles ();
65
- if (PHP_VERSION_ID < 80100 ) {
66
- gc_collect_cycles ();
67
- }
68
60
69
61
$ this ->postTestMemoryUsages [$ test ][] = memory_get_usage ();
70
62
}
You can’t perform that action at this time.
0 commit comments