Skip to content

Commit e290018

Browse files
committed
Removed problematic tear down logic
1 parent 65b9dab commit e290018

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/Integration/TestCase/RestIntegrationControllerTestCase.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
1515
use UnexpectedValueException;
1616
use function assert;
17-
use function gc_collect_cycles;
18-
use function gc_enable;
1917
use function mb_substr;
2018
use function sprintf;
2119

@@ -40,8 +38,6 @@ abstract class RestIntegrationControllerTestCase extends KernelTestCase
4038
#[Override]
4139
protected function setUp(): void
4240
{
43-
gc_enable();
44-
4541
parent::setUp();
4642

4743
$controller = static::getContainer()->get($this->controllerClass);
@@ -51,16 +47,6 @@ protected function setUp(): void
5147
$this->controller = $controller;
5248
}
5349

54-
#[Override]
55-
protected function tearDown(): void
56-
{
57-
parent::tearDown();
58-
59-
unset($this->controller);
60-
61-
gc_collect_cycles();
62-
}
63-
6450
public function testThatGivenControllerIsCorrect(): void
6551
{
6652
$expected = mb_substr((new ReflectionClass($this))->getShortName(), 0, -4);

0 commit comments

Comments
 (0)