Skip to content

Commit e222853

Browse files
[2.6] add @group legacy
1 parent 5aa786d commit e222853

8 files changed

+61
-1
lines changed

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);

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);

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);

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);

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

Tests/Extension/Csrf/CsrfProvider/LegacySessionCsrfProviderTest.php

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

1414
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider;
1515

16+
/**
17+
* @group legacy
18+
*/
1619
class LegacySessionCsrfProviderTest extends \PHPUnit_Framework_TestCase
1720
{
1821
protected $provider;

Tests/Extension/Validator/Constraints/LegacyFormValidator2Dot4ApiTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
/**
1717
* @since 2.5.3
1818
* @author Bernhard Schussek <[email protected]>
19+
* @group legacy
1920
*/
2021
class LegacyFormValidator2Dot4ApiTest extends FormValidatorTest
2122
{

Tests/Extension/Validator/Constraints/LegacyFormValidatorLegacyApiTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
/**
1717
* @since 2.5.3
1818
* @author Bernhard Schussek <[email protected]>
19+
* @group legacy
1920
*/
2021
class LegacyFormValidatorLegacyApiTest extends FormValidatorTest
2122
{

0 commit comments

Comments
 (0)