Skip to content

Commit

Permalink
[2.3] add @group legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Mar 13, 2015
1 parent 4467583 commit 1c5a5e7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ public function testSetCatchExceptions()
}
}

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

/**
* @group legacy
*/
public function testLegacyAsXml()
{
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
Expand Down
6 changes: 6 additions & 0 deletions Tests/Command/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ public function callableMethodCommand(InputInterface $input, OutputInterface $ou
$output->writeln('from the code...');
}

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

/**
* @group legacy
*/
public function testLegacyAsXml()
{
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
Expand Down
6 changes: 6 additions & 0 deletions Tests/Input/InputDefinitionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ public function testGetSynopsis()
$this->assertEquals('foo1 ... [fooN]', $definition->getSynopsis(), '->getSynopsis() returns a synopsis of arguments and options');
}

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

/**
* @group legacy
*/
public function testLegacyAsXml()
{
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
Expand Down

0 comments on commit 1c5a5e7

Please sign in to comment.