Skip to content

Commit 52ab206

Browse files
[2.3] add @group legacy
1 parent dc6ea1a commit 52ab206

File tree

10 files changed

+38
-1
lines changed

10 files changed

+38
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ install:
4646
script:
4747
- if [ "$deps" = "no" ]; then echo "$components" | parallel --gnu --keep-order 'echo -e "\\nRunning {} tests"; phpunit --exclude-group tty,benchmark,intl-data {} || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;
4848
- if [ "$deps" = "no" ]; then echo -e "\\nRunning tests requiring tty"; phpunit --group tty || (echo -e "\\e[41mKO\\e[0m tty group" && $(exit 1)); fi;
49-
- if [ "$deps" = "high" ]; then echo "$components" | parallel --gnu --keep-order -j25% 'echo -e "\\nRunning {} tests"; cd {}; composer --prefer-source update; phpunit --exclude-group tty,benchmark,intl-data,legacy || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;
49+
- if [ "$deps" = "high" ]; then echo "$components" | parallel --gnu --keep-order -j25% 'echo -e "\\nRunning {} tests"; cd {}; composer --prefer-source update; phpunit --exclude-group tty,benchmark,intl-data || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;
5050
- if [ "$deps" = "low" ]; then echo "$components" | parallel --gnu --keep-order -j25% 'echo -e "\\nRunning {} tests"; cd {}; composer --prefer-source --prefer-lowest --prefer-stable update; phpunit --exclude-group tty,benchmark,intl-data || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public function testGetIndicesForValuesIgnoresNonExistingValues()
2121
$this->markTestSkipped('Non-existing values are not detected for unloaded choice lists.');
2222
}
2323

24+
/**
25+
* @group legacy
26+
*/
2427
public function testLegacyGetIndicesForValuesIgnoresNonExistingValues()
2528
{
2629
$this->markTestSkipped('Non-existing values are not detected for unloaded choice lists.');

src/Symfony/Bundle/TwigBundle/Tests/TokenParser/LegacyRenderTokenParserTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
use Symfony\Bundle\TwigBundle\TokenParser\RenderTokenParser;
1616
use Symfony\Bundle\TwigBundle\Node\RenderNode;
1717

18+
/**
19+
* @group legacy
20+
*/
1821
class LegacyRenderTokenParserTest extends TestCase
1922
{
2023
protected function setUp()

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,9 @@ public function testSetCatchExceptions()
424424
}
425425
}
426426

427+
/**
428+
* @group legacy
429+
*/
427430
public function testLegacyAsText()
428431
{
429432
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
@@ -435,6 +438,9 @@ public function testLegacyAsText()
435438
$this->assertStringEqualsFile(self::$fixturesPath.'/application_astext2.txt', $this->normalizeLineBreaks($application->asText('foo')), '->asText() returns a text representation of the application');
436439
}
437440

441+
/**
442+
* @group legacy
443+
*/
438444
public function testLegacyAsXml()
439445
{
440446
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);

src/Symfony/Component/Console/Tests/Command/CommandTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ public function callableMethodCommand(InputInterface $input, OutputInterface $ou
318318
$output->writeln('from the code...');
319319
}
320320

321+
/**
322+
* @group legacy
323+
*/
321324
public function testLegacyAsText()
322325
{
323326
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
@@ -329,6 +332,9 @@ public function testLegacyAsText()
329332
$this->assertStringEqualsFile(self::$fixturesPath.'/command_astext.txt', $command->asText(), '->asText() returns a text representation of the command');
330333
}
331334

335+
/**
336+
* @group legacy
337+
*/
332338
public function testLegacyAsXml()
333339
{
334340
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ public function testGetSynopsis()
373373
$this->assertEquals('foo1 ... [fooN]', $definition->getSynopsis(), '->getSynopsis() returns a synopsis of arguments and options');
374374
}
375375

376+
/**
377+
* @group legacy
378+
*/
376379
public function testLegacyAsText()
377380
{
378381
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
@@ -390,6 +393,9 @@ public function testLegacyAsText()
390393
$this->assertStringEqualsFile(self::$fixtures.'/definition_astext.txt', $definition->asText(), '->asText() returns a textual representation of the InputDefinition');
391394
}
392395

396+
/**
397+
* @group legacy
398+
*/
393399
public function testLegacyAsXml()
394400
{
395401
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);

src/Symfony/Component/Form/Tests/AbstractLayoutTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ abstract protected function renderEnd(FormView $view, array $vars = array());
122122

123123
abstract protected function setTheme(FormView $view, array $themes);
124124

125+
/**
126+
* @group legacy
127+
*/
125128
public function testLegacyEnctype()
126129
{
127130
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
@@ -133,6 +136,9 @@ public function testLegacyEnctype()
133136
$this->assertEquals('enctype="multipart/form-data"', $this->renderEnctype($form->createView()));
134137
}
135138

139+
/**
140+
* @group legacy
141+
*/
136142
public function testLegacyNoEnctype()
137143
{
138144
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Component/Form/Tests/Extension/HttpFoundation/EventListener/LegacyBindRequestListenerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
/**
2222
* @author Bernhard Schussek <bschussek@gmail.com>
23+
* @group legacy
2324
*/
2425
class LegacyBindRequestListenerTest extends \PHPUnit_Framework_TestCase
2526
{

src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public function getValidParameters()
4646
);
4747
}
4848

49+
/**
50+
* @group legacy
51+
*/
4952
public function testLegacyGetPattern()
5053
{
5154
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

src/Symfony/Component/Routing/Tests/RouteTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ public function testCompile()
201201
$this->assertNotSame($compiled, $route->compile(), '->compile() recompiles if the route was modified');
202202
}
203203

204+
/**
205+
* @group legacy
206+
*/
204207
public function testLegacyPattern()
205208
{
206209
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);

0 commit comments

Comments
 (0)