8000 Remove ForwardCompatTestTrait by jderusse · Pull Request #33048 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Remove ForwardCompatTestTrait #33048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 0 additions & 78 deletions src/Symfony/Bundle/FrameworkBundle/Test/ForwardCompatTestTrait.php

This file was deleted.

4 changes: 1 addition & 3 deletions src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/
abstract class KernelTestCase extends TestCase
{
use ForwardCompatTestTrait;

protected static $class;

/**
Expand All @@ -39,7 +37,7 @@ abstract class KernelTestCase extends TestCase

protected static $booted;

private function doTearDown()
protected function tearDown(): void
{
static::ensureKernelShutdown();
}
Expand Down
3 changes: 1 addition & 2 deletions src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
*/
abstract class WebTestCase extends KernelTestCase
{
use ForwardCompatTestTrait;
use WebTestAssertionsTrait;
use MailerAssertionsTrait;

private function doTearDown()
protected function tearDown(): void
{
parent::tearDown();
self::getClient(null);
Expand Down
4 changes: 1 addition & 3 deletions src/Symfony/Component/Form/Test/FormIntegrationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@
*/
abstract class FormIntegrationTestCase extends TestCase
{
use ForwardCompatTestTrait;

/**
* @var FormFactoryInterface
*/
protected $factory;

private function doSetUp()
protected function setUp(): void
{
$this->factory = Forms::createFormFactoryBuilder()
->addExtensions($this->getExtensions())
Expand Down
78 changes: 0 additions & 78 deletions src/Symfony/Component/Form/Test/ForwardCompatTestTrait.php

This file was deleted.

6 changes: 2 additions & 4 deletions src/Symfony/Component/Form/Test/TypeTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

abstract class TypeTestCase extends FormIntegrationTestCase
{
use ForwardCompatTestTrait;

/**
* @var FormBuilder
*/
Expand All @@ -29,15 +27,15 @@ abstract class TypeTestCase extends FormIntegrationTestCase
*/
protected $dispatcher;

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

$this->dispatcher = $this->getMockBuilder(EventDispatcherInterface::class)->getMock();
$this->builder = new FormBuilder('', null, $this->dispatcher, $this->factory);
}

private function doTearDown()
protected function tearDown(): void
{
if (\in_array(ValidatorExtensionTrait::class, class_uses($this))) {
$this->validator = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
*/
abstract class ConstraintValidatorTestCase extends TestCase
{
use ForwardCompatTestTrait;

/**
* @var ExecutionContextInterface
*/
Expand All @@ -51,7 +49,7 @@ abstract class ConstraintValidatorTestCase extends TestCase
protected $constraint;
protected $defaultTimezone;

private function doSetUp()
protected function setUp(): void
{
$this->group = 'MyGroup';
$this->metadata = null;
Expand All @@ -73,7 +71,7 @@ private function doSetUp()
$this->setDefaultTimezone('UTC');
}

private function doTearDown()
protected function tearDown(): void
{
$this->restoreDefaultTimezone();
}
Expand Down
78 changes: 0 additions & 78 deletions src/Symfony/Component/Validator/Test/ForwardCompatTestTrait.php

This file was deleted.

0