10000 Move class_exists() inside of the test as it is irrelevant outside · symfony/symfony@dd8a3b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit dd8a3b3

Browse files

Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
use Symfony\Component\Stopwatch\Stopwatch;
2323
use Symfony\Component\Stopwatch\StopwatchEvent;
2424

25-
class_exists(TraceableMiddleware::class);
26-
2725
/**
2826
* @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
2927
*/
@@ -146,6 +144,9 @@ public function handle(Envelope $envelope, StackInterface $stack): Envelope
146144

147145
public function testCloneTraceableStack(): void
148146
{
147+
// import TraceableStack
148+
class_exists(TraceableMiddleware::class);
149+
149150
$stackMiddleware = new StackMiddleware([
150151
$this->createMock(MiddlewareInterface::class),
151152
$this->createMock(MiddlewareInterface::class),