Skip to content

Commit

Permalink
test: separate leak test, as pest fails
Browse files Browse the repository at this point in the history
Pest does not support `runInSeparateProcess`, See: pestphp/pest#953
lotyp committed May 13, 2024
1 parent 606f969 commit 8b8d0ea
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -283,6 +283,10 @@ test-cc: ## Run project php-unit and pest tests in coverage mode and build repor
$(APP_COMPOSER) test:cc
.PHONY: test-cc

test-leak: ## Run project php-unit tests in memory leak detection mode
$(APP_COMPOSER) test:leak
.PHONY: test-leak

#
# Release
# ------------------------------------------------------------------------------------
2 changes: 2 additions & 0 deletions tests/Unit/Client/FunctionTrapTest.php
Original file line number Diff line number Diff line change
@@ -10,6 +10,8 @@ final class FunctionTrapTest extends TestCase
{
/**
* @runInSeparateProcess
*
* @group phpunit-only
*/
public function testLeak(): void
{

0 comments on commit 8b8d0ea

Please sign in to comment.