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 2323use function memory_get_usage ;
2424use function sprintf ;
2525
26- use const PHP_VERSION_ID ;
27-
2826/**
2927 * Note: we need to implement TestListener, because the hook API is not allowing
3028 * us to interact with test suite instances. This means that the entire package
@@ -52,19 +50,13 @@ public function startTestSuite(TestSuite $suite): void
5250 public function executeBeforeTest (string $ test ): void
5351 {
5452 gc_collect_cycles ();
55- if (PHP_VERSION_ID < 80100 ) {
56- gc_collect_cycles ();
57- }
5853
5954 $ this ->preTestMemoryUsages [$ test ][] = memory_get_usage ();
6055 }
6156
6257 public function executeAfterSuccessfulTest (string $ test , float $ time ): void
6358 {
6459 gc_collect_cycles ();
65- if (PHP_VERSION_ID < 80100 ) {
66- gc_collect_cycles ();
67- }
6860
6961 $ this ->postTestMemoryUsages [$ test ][] = memory_get_usage ();
7062 }
You can’t perform that action at this time.
0 commit comments