Skip to content

Commit 9e777d1

Browse files
[Debug] disable new DebugClassLoader when testing the legacy one
1 parent cbddae1 commit 9e777d1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Tests/Test/WebTestCaseTest.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,14 @@ private function getRequestTester(): WebTestCase
274274

275275
private function getTester(KernelBrowser $client): WebTestCase
276276
{
277-
return new class($client) extends WebTestCase {
278-
use WebTestAssertionsTrait;
279-
280-
public function __construct(KernelBrowser $client)
281-
{
282-
self::getClient($client);
277+
$tester = new class() extends WebTestCase {
278+
use WebTestAssertionsTrait {
279+
getClient as public;
283280
}
284281
};
282+
283+
$tester::getClient($client);
284+
285+
return $tester;
285286
}
286287
}

0 commit comments

Comments
 (0)