namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase
as BaseWebTestCase;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\app\AppKernel;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\KernelInterface;
abstract class AbstractWebTestCase extends BaseWebTestCase
{ public static function assertRedirect($response,
$location) { self::
assertTrue($response->
isRedirect(), 'Response is not a redirect, got status code: '.
$response->
getStatusCode());
self::
assertEquals('http://localhost'.
$location,
$response->headers->
get('Location'
));
} public static function setUpBeforeClass(): void
{ static::
deleteTmpDir();
} public static function tearDownAfterClass(): void
{ static::
deleteTmpDir();
}