Skip to content

Commit 2cc87fd

Browse files
author
Egor Nelyubov
committed
Reduce the memory consumption of tests by forcing PHP to return the unused memory
1 parent 701b636 commit 2cc87fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Codeception/Lib/Parser.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ public static function getClassesFromFile($file)
170170
}
171171
}
172172

173+
$tokens = null;
174+
gc_mem_caches();
175+
173176
return $classes;
174177
}
175178

0 commit comments

Comments
 (0)