<?php

namespace Enqueue\Bundle\Tests\Functional;

use Enqueue\Bundle\Tests\Functional\App\AppKernel;
use Enqueue\Client\TraceableProducer;
use Symfony\Bundle\FrameworkBundle\Client;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase;
use Symfony\Component\DependencyInjection\ContainerInterface;

abstract class WebTestCase extends BaseWebTestCase
{
    /**
     * @var Client
     */
    protected static $client;

    /**
     * @var ContainerInterface
     */
    protected static $container;

    protected function setUp()
    {
        parent::setUp();

        static::$class = null;
        static::$client = static::createClient();
        static::$container = static::$kernel->getContainer();

        /** @var TraceableProducer $producer */
        $producer = static::$container->get('test_enqueue.client.default.traceable_producer');
        $producer->clearTraces();
    }

    protected function tearDown(): void
    {
        static::ensureKernelShutdown();
        static::$client = null;
    }

    /**
     * @return string
     */
    public static function getKernelClass()
    {
        include_once __DIR__.'/App/AppKernel.php';

        return AppKernel::class;
    }
}

<?php

namespace Enqueue\Bundle\Tests\Functional;

use Enqueue\Bundle\Tests\Functional\App\AppKernel;
use Enqueue\Client\TraceableProducer;
use Symfony\Bundle\FrameworkBundle\Client;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase;
use Symfony\Component\DependencyInjection\ContainerInterface;

abstract class WebTestCase extends BaseWebTestCase
{
    /**
     * @var Client
     */
    protected static $client;

    /**
     * @var ContainerInterface
     */
    protected static $container;

    protected function setUp(): void
    {
        parent::setUp();

        static::$class = null;
        static::$client = static::createClient();
        static::$container = static::$kernel->getContainer();

        /** @var TraceableProducer $producer */
        $producer = static::$container->get('test_enqueue.client.default.traceable_producer');
        $producer->clearTraces();
    }

    protected function tearDown(): void
    {
        static::ensureKernelShutdown();
        static::$client = null;
    }

    /**
     * @return string
     */
    public static function getKernelClass()
    {
        include_once __DIR__.'/App/AppKernel.php';

        return AppKernel::class;
    }
}

Fix test setUp method signatures
Fix test setUp method signatures
