Skip to content

Commit 70012c1

Browse files
jzawadzkinicolas-grekas
authored andcommitted
[Hackday] [2.7] Add a deprecation note about TypeTestCase
1 parent 5fc4f27 commit 70012c1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Symfony/Bridge/Propel1/Tests/Form/Type/TranslationCollectionTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Bridge\Propel1\Form\PropelExtension;
1616
use Symfony\Bridge\Propel1\Tests\Fixtures\TranslatableItemI18n;
1717
use Symfony\Bridge\Propel1\Tests\Fixtures\TranslatableItem;
18-
use Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase;
18+
use Symfony\Component\Form\Test\TypeTestCase;
1919

2020
class TranslationCollectionTypeTest extends TypeTestCase
2121
{

src/Symfony/Component/Form/Tests/Extension/Core/Type/TypeTestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@
1818
*/
1919
abstract class TypeTestCase extends BaseTypeTestCase
2020
{
21+
protected function setUp()
22+
{
23+
trigger_error('Abstract class "Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase" is deprecated since version 2.3 and will be removed in 3.0. Use "Symfony\Component\Form\Test\TypeTestCase" instead.', E_USER_DEPRECATED);
24+
parent::setUp();
25+
}
2126
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy