Skip to content

Commit ed40c90

Browse files
[2.6] add @group legacy
1 parent b5e9107 commit ed40c90

File tree

133 files changed

+281
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+281
-1
lines changed

src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ public function testInitShorthandEntityName()
267267
$this->assertEquals(array(1, 2), $choiceList->getValuesForChoices(array($item1, $item2)));
268268
}
269269

270+
/**
271+
* @group legacy
272+
*/
270273
public function testLegacyInitShorthandEntityName()
271274
{
272275
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/LegacyUniqueEntityValidator2Dot4ApiTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
/**
1717
* @since 2.5.4
1818
* @author Bernhard Schussek <bschussek@gmail.com>
19+
* @group legacy
1920
*/
2021
class LegacyUniqueEntityValidator2Dot4ApiTest extends UniqueEntityValidatorTest
2122
{

src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/LegacyUniqueEntityValidatorLegacyApiTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
/**
1717
* @since 2.5.4
1818
* @author Bernhard Schussek <bschussek@gmail.com>
19+
* @group legacy
1920
*/
2021
class LegacyUniqueEntityValidatorLegacyApiTest extends UniqueEntityValidatorTest
2122
{

src/Symfony/Bridge/Propel1/Tests/Form/ChoiceList/ModelChoiceListTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ public function testDifferentEqualObjectsAreChoosen()
204204
$this->assertEquals(array('1'), $choiceList->getValuesForChoices(array($choosenItem)));
205205
}
206206

207+
/**
208+
* @group legacy
209+
*/
207210
public function testLegacygetIndicesForChoices()
208211
{
209212
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -228,6 +231,9 @@ public function testLegacygetIndicesForChoices()
228231
$this->assertEquals(array(1, 2), $choiceList->getIndicesForChoices(array($item1, $item2)));
229232
}
230233

234+
/**
235+
* @group legacy
236+
*/
231237
public function testLegacyDifferentEqualObjectsAreChoosen()
232238
{
233239
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -249,6 +255,9 @@ public function testLegacyDifferentEqualObjectsAreChoosen()
249255
$this->assertEquals(array(1), $choiceList->getIndicesForChoices(array($choosenItem)));
250256
}
251257

258+
/**
259+
* @group legacy
260+
*/
252261
public function testLegacyGetIndicesForNullChoices()
253262
{
254263
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Bundle/FrameworkBundle/Tests/Templating/GlobalVariablesTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ protected function setUp()
2626
$this->globals = new GlobalVariables($this->container);
2727
}
2828

29+
/**
30+
* @group legacy
31+
*/
2932
public function testLegacyGetSecurity()
3033
{
3134
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Component/ClassLoader/Tests/LegacyApcUniversalClassLoaderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
use Symfony\Component\ClassLoader\ApcUniversalClassLoader;
1515

16+
/**
17+
* @group legacy
18+
*/
1619
class LegacyApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
1720
{
1821
protected function setUp()

src/Symfony/Component/ClassLoader/Tests/LegacyUniversalClassLoaderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
use Symfony\Component\ClassLoader\UniversalClassLoader;
1515

16+
/**
17+
* @group legacy
18+
*/
1619
class LegacyUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
1720
{
1821
protected function setUp()

src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
use Symfony\Component\Console\Helper\FormatterHelper;
1818
use Symfony\Component\Console\Output\StreamOutput;
1919

20+
/**
21+
* @group legacy
22+
*/
2023
class LegacyDialogHelperTest extends \PHPUnit_Framework_TestCase
2124
{
2225
protected function setUp()

src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Symfony\Component\Console\Helper\ProgressHelper;
1515
use Symfony\Component\Console\Output\StreamOutput;
1616

17+
/**
18+
* @group legacy
19+
*/
1720
class LegacyProgressHelperTest extends \PHPUnit_Framework_TestCase
1821
{
1922
protected function setUp()

src/Symfony/Component/Console/Tests/Helper/LegacyTableHelperTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Symfony\Component\Console\Helper\TableHelper;
1515
use Symfony\Component\Console\Output\StreamOutput;
1616

17+
/**
18+
* @group legacy
19+
*/
1720
class LegacyTableHelperTest extends \PHPUnit_Framework_TestCase
1821
{
1922
protected $stream;

src/Symfony/Component/Console/Tests/Input/StringInputTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ public function testInputOptionWithGivenString()
4141
$this->assertEquals('bar', $input->getOption('foo'));
4242
}
4343

44+
/**
45+
* @group legacy
46+
*/
4447
public function testLegacyInputOptionDefinitionInConstructor()
4548
{
4649
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ public function testHandleFatalError()
359359
}
360360
}
361361

362+
/**
363+
* @group legacy
364+
*/
362365
public function testLegacyInterface()
363366
{
364367
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function testHandleClassNotFound($error, $translatedMessage)
3636

3737
/**
3838
* @dataProvider provideLegacyClassNotFoundData
39+
* @group legacy
3940
*/
4041
public function testLegacyHandleClassNotFound($error, $translatedMessage, $autoloader)
4142
{

src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Symfony\Component\DependencyInjection\ContainerBuilder;
1515
use Symfony\Component\DependencyInjection\Reference;
1616

17+
/**
18+
* @group legacy
19+
*/
1720
class LegacyContainerBuilderTest extends \PHPUnit_Framework_TestCase
1821
{
1922
protected function setUp()

src/Symfony/Component/DependencyInjection/Tests/LegacyDefinitionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
use Symfony\Component\DependencyInjection\Definition;
1515

16+
/**
17+
* @group legacy
18+
*/
1619
class LegacyDefinitionTest extends \PHPUnit_Framework_TestCase
1720
{
1821
public function testSetGetFactoryClass()

src/Symfony/Component/EventDispatcher/Tests/EventTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,37 @@ public function testStopPropagationAndIsPropagationStopped()
6060
$this->assertTrue($this->event->isPropagationStopped());
6161
}
6262

63+
/**
64+
* @group legacy
65+
*/
6366
public function testLegacySetDispatcher()
6467
{
6568
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
6669
$this->event->setDispatcher($this->dispatcher);
6770
$this->assertSame($this->dispatcher, $this->event->getDispatcher());
6871
}
6972

73+
/**
74+
* @group legacy
75+
*/
7076
public function testLegacyGetDispatcher()
7177
{
7278
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
7379
$this->assertNull($this->event->getDispatcher());
7480
}
7581

82+
/**
83+
* @group legacy
84+
*/
7685
public function testLegacyGetName()
7786
{
7887
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
7988
$this->assertNull($this->event->getName());
8089
}
8190

91+
/**
92+
* @group legacy
93+
*/
8294
public function testLegacySetName()
8395
{
8496
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/AbstractChoiceListTest.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ public function testGetValues()
161161
$this->assertSame($this->values, $this->list->getValues());
162162
}
163163

164+
/**
165+
* @group legacy
166+
*/
164167
public function testLegacyGetIndicesForChoices()
165168
{
166169
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -169,6 +172,9 @@ public function testLegacyGetIndicesForChoices()
169172
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForChoices($choices));
170173
}
171174

175+
/**
176+
* @group legacy
177+
*/
172178
public function testLegacyGetIndicesForChoicesPreservesKeys()
173179
{
174180
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -177,6 +183,9 @@ public function testLegacyGetIndicesForChoicesPreservesKeys()
177183
$this->assertSame(array(5 => $this->index1, 8 => $this->index2), $this->list->getIndicesForChoices($choices));
178184
}
179185

186+
/**
187+
* @group legacy
188+
*/
180189
public function testLegacyGetIndicesForChoicesPreservesOrder()
181190
{
182191
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -185,6 +194,9 @@ public function testLegacyGetIndicesForChoicesPreservesOrder()
185194
$this->assertSame(array($this->index2, $this->index1), $this->list->getIndicesForChoices($choices));
186195
}
187196

197+
/**
198+
* @group legacy
199+
*/
188200
public function testLegacyGetIndicesForChoicesIgnoresNonExistingChoices()
189201
{
190202
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -193,13 +205,19 @@ public function testLegacyGetIndicesForChoicesIgnoresNonExistingChoices()
193205
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForChoices($choices));
194206
}
195207

208+
/**
209+
* @group legacy
210+
*/
196211
public function testLegacyGetIndicesForChoicesEmpty()
197212
{
198213
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
199214

200215
$this->assertSame(array(), $this->list->getIndicesForChoices(array()));
201216
}
202217

218+
/**
219+
* @group legacy
220+
*/
203221
public function testLegacyGetIndicesForValues()
204222
{
205223
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -209,6 +227,9 @@ public function testLegacyGetIndicesForValues()
209227
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForValues($values));
210228
}
211229

230+
/**
231+
* @group legacy
232+
*/
212233
public function testLegacyGetIndicesForValuesPreservesKeys()
213234
{
214235
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -218,6 +239,9 @@ public function testLegacyGetIndicesForValuesPreservesKeys()
218239
$this->assertSame(array(5 => $this->index1, 8 => $this->index2), $this->list->getIndicesForValues($values));
219240
}
220241

242+
/**
243+
* @group legacy
244+
*/
221245
public function testLegacyGetIndicesForValuesPreservesOrder()
222246
{
223247
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -226,6 +250,9 @@ public function testLegacyGetIndicesForValuesPreservesOrder()
226250
$this->assertSame(array($this->index2, $this->index1), $this->list->getIndicesForValues($values));
227251
}
228252

253+
/**
254+
* @group legacy
255+
*/
229256
public function testLegacyGetIndicesForValuesIgnoresNonExistingValues()
230257
{
231258
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -234,6 +261,9 @@ public function testLegacyGetIndicesForValuesIgnoresNonExistingValues()
234261
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForValues($values));
235262
}
236263

264+
/**
265+
* @group legacy
266+
*/
237267
public function testLegacyGetIndicesForValuesEmpty()
238268
{
239269
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/LazyChoiceListTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public function testGetRemainingViews()
5757
$this->assertEquals(array(0 => new ChoiceView('a', 'a', 'A'), 2 => new ChoiceView('c', 'c', 'C')), $this->list->getRemainingViews());
5858
}
5959

60+
/**
61+
* @group legacy
62+
*/
6063
public function testLegacyGetIndicesForChoices()
6164
{
6265
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -65,6 +68,9 @@ public function testLegacyGetIndicesForChoices()
6568
$this->assertSame(array(1, 2), $this->list->getIndicesForChoices($choices));
6669
}
6770

71+
/**
72+
* @group legacy
73+
*/
6874
public function testLegacyGetIndicesForValues()
6975
{
7076
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/ObjectChoiceListTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ public function testInitArrayThrowsExceptionIfToStringNotFound()
185185
);
186186
}
187187

188+
/**
189+
* @group legacy
190+
*/
188191
public function testLegacyGetIndicesForChoicesWithValuePath()
189192
{
190193
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -202,6 +205,9 @@ public function testLegacyGetIndicesForChoicesWithValuePath()
202205
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForChoices($choices));
203206
}
204207

208+
/**
209+
* @group legacy
210+
*/
205211
public function testLegacyGetIndicesForChoicesWithValuePathPreservesKeys()
206212
{
207213
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -218,6 +224,9 @@ public function testLegacyGetIndicesForChoicesWithValuePathPreservesKeys()
218224
$this->assertSame(array(5 => $this->index1, 8 => $this->index2), $this->list->getIndicesForChoices($choices));
219225
}
220226

227+
/**
228+
* @group legacy
229+
*/
221230
public function testLegacyGetIndicesForChoicesWithValuePathPreservesOrder()
222231
{
223232
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -234,6 +243,9 @@ public function testLegacyGetIndicesForChoicesWithValuePathPreservesOrder()
234243
$this->assertSame(array($this->index2, $this->index1), $this->list->getIndicesForChoices($choices));
235244
}
236245

246+
/**
247+
* @group legacy
248+
*/
237249
public function testLegacyGetIndicesForChoicesWithValuePathIgnoresNonExistingChoices()
238250
{
239251
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Component/Form/Tests/Extension/Core/ChoiceList/SimpleNumericChoiceListTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
class SimpleNumericChoiceListTest extends AbstractChoiceListTest
1717
{
18+
/**
19+
* @group legacy
20+
*/
1821
public function testLegacyGetIndicesForChoicesDealsWithNumericChoices()
1922
{
2023
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -24,6 +27,9 @@ public function testLegacyGetIndicesForChoicesDealsWithNumericChoices()
2427
$this->assertSame(array(0, 1), $this->list->getIndicesForChoices($choices));
2528
}
2629

30+
/**
31+
* @group legacy
32+
*/
2733
public function testLegacyGetIndicesForValuesDealsWithNumericValues()
2834
{
2935
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/LegacyDefaultCsrfProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
/**
1717
* @runTestsInSeparateProcesses
1818
* @preserveGlobalState disabled
19+
* @group legacy
1920
*/
20-
class DefaultCsrfProviderTest extends \PHPUnit_Framework_TestCase
21+
class LegacyDefaultCsrfProviderTest extends \PHPUnit_Framework_TestCase
2122
{
2223
protected $provider;
2324

0 commit comments

Comments
 (0)