Merge branch '2.6' into 2.7
* 2.6: [2.6] add @group legacy [2.3] add @group legacy Conflicts: src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/LegacyUniqueEntityValidator2Dot4ApiTest.php src/Symfony/Bridge/Propel1/Tests/Form/ChoiceList/ModelChoiceListTest.php src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/LegacyFormValidator2Dot4ApiTest.php src/Symfony/Component/Security/Core/Tests/Validator/Constraints/LegacyUserPasswordValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyAllValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyBlankValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyCallbackValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyCardSchemeValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyChoiceValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyCollectionValidatorArray2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyCollectionValidatorArrayObject2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyCollectionValidatorCustomArrayObject2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyCountValidatorArray2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyCountValidatorCountable2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyCurrencyValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyDateTimeValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyDateValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyEmailValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyEqualToValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyExpressionValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyFalseValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyFileValidatorObject2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyFileValidatorPath2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyGreaterThanOrEqualValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyGreaterThanValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyIbanValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyIdenticalToValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyImageValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyIpValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyIsbnValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyIssnValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyLanguageValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyLengthValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyLessThanOrEqualValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyLessThanValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyLocaleValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyLuhnValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyNotBlankValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyNotEqualToValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyNotIdenticalToValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyNotNullValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyNullValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyRangeValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyRegexValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyTimeValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyTrueValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyTypeValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyUrlValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/Constraints/LegacyUuidValidator2Dot4ApiTest.php src/Symfony/Component/Validator/Tests/ValidatorBuilderTest.php
This commit is contained in:
commit
099622deb4
|
@ -46,5 +46,5 @@ install:
|
||||||
script:
|
script:
|
||||||
- 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;
|
- 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;
|
||||||
- if [ "$deps" = "no" ]; then echo -e "\\nRunning tests requiring tty"; phpunit --group tty || (echo -e "\\e[41mKO\\e[0m tty group" && $(exit 1)); fi;
|
- if [ "$deps" = "no" ]; then echo -e "\\nRunning tests requiring tty"; phpunit --group tty || (echo -e "\\e[41mKO\\e[0m tty group" && $(exit 1)); fi;
|
||||||
- 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;
|
- 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;
|
||||||
- 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;
|
- 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;
|
||||||
|
|
|
@ -267,6 +267,9 @@ class GenericEntityChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals(array(1, 2), $choiceList->getValuesForChoices(array($item1, $item2)));
|
$this->assertEquals(array(1, 2), $choiceList->getValuesForChoices(array($item1, $item2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyInitShorthandEntityName()
|
public function testLegacyInitShorthandEntityName()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -21,6 +21,9 @@ class UnloadedEntityChoiceListSingleIntIdTest extends AbstractEntityChoiceListSi
|
||||||
$this->markTestSkipped('Non-existing values are not detected for unloaded choice lists.');
|
$this->markTestSkipped('Non-existing values are not detected for unloaded choice lists.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForValuesIgnoresNonExistingValues()
|
public function testLegacyGetIndicesForValuesIgnoresNonExistingValues()
|
||||||
{
|
{
|
||||||
$this->markTestSkipped('Non-existing values are not detected for unloaded choice lists.');
|
$this->markTestSkipped('Non-existing values are not detected for unloaded choice lists.');
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.4
|
* @since 2.5.4
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyUniqueEntityValidatorLegacyApiTest extends UniqueEntityValidatorTest
|
class LegacyUniqueEntityValidatorLegacyApiTest extends UniqueEntityValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,6 +26,9 @@ class GlobalVariablesTest extends TestCase
|
||||||
$this->globals = new GlobalVariables($this->container);
|
$this->globals = new GlobalVariables($this->container);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetSecurity()
|
public function testLegacyGetSecurity()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -15,6 +15,9 @@ use Symfony\Bundle\TwigBundle\Tests\TestCase;
|
||||||
use Symfony\Bundle\TwigBundle\TokenParser\RenderTokenParser;
|
use Symfony\Bundle\TwigBundle\TokenParser\RenderTokenParser;
|
||||||
use Symfony\Bundle\TwigBundle\Node\RenderNode;
|
use Symfony\Bundle\TwigBundle\Node\RenderNode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyRenderTokenParserTest extends TestCase
|
class LegacyRenderTokenParserTest extends TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
|
|
@ -13,6 +13,9 @@ namespace Symfony\Component\ClassLoader\Tests;
|
||||||
|
|
||||||
use Symfony\Component\ClassLoader\ApcUniversalClassLoader;
|
use Symfony\Component\ClassLoader\ApcUniversalClassLoader;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
|
class LegacyApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
|
|
@ -13,6 +13,9 @@ namespace Symfony\Component\ClassLoader\Tests;
|
||||||
|
|
||||||
use Symfony\Component\ClassLoader\UniversalClassLoader;
|
use Symfony\Component\ClassLoader\UniversalClassLoader;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
|
class LegacyUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
|
|
@ -490,6 +490,9 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyAsText()
|
public function testLegacyAsText()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -501,6 +504,9 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertStringEqualsFile(self::$fixturesPath.'/application_astext2.txt', $this->normalizeLineBreaks($application->asText('foo')), '->asText() returns a text representation of the application');
|
$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()
|
public function testLegacyAsXml()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -318,6 +318,9 @@ class CommandTest extends \PHPUnit_Framework_TestCase
|
||||||
$output->writeln('from the code...');
|
$output->writeln('from the code...');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyAsText()
|
public function testLegacyAsText()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -329,6 +332,9 @@ class CommandTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertStringEqualsFile(self::$fixturesPath.'/command_astext.txt', $command->asText(), '->asText() returns a text representation of the command');
|
$this->assertStringEqualsFile(self::$fixturesPath.'/command_astext.txt', $command->asText(), '->asText() returns a text representation of the command');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyAsXml()
|
public function testLegacyAsXml()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -17,6 +17,9 @@ use Symfony\Component\Console\Helper\HelperSet;
|
||||||
use Symfony\Component\Console\Helper\FormatterHelper;
|
use Symfony\Component\Console\Helper\FormatterHelper;
|
||||||
use Symfony\Component\Console\Output\StreamOutput;
|
use Symfony\Component\Console\Output\StreamOutput;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyDialogHelperTest extends \PHPUnit_Framework_TestCase
|
class LegacyDialogHelperTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
|
|
@ -14,6 +14,9 @@ namespace Symfony\Component\Console\Tests\Helper;
|
||||||
use Symfony\Component\Console\Helper\ProgressHelper;
|
use Symfony\Component\Console\Helper\ProgressHelper;
|
||||||
use Symfony\Component\Console\Output\StreamOutput;
|
use Symfony\Component\Console\Output\StreamOutput;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyProgressHelperTest extends \PHPUnit_Framework_TestCase
|
class LegacyProgressHelperTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
|
|
@ -14,6 +14,9 @@ namespace Symfony\Component\Console\Tests\Helper;
|
||||||
use Symfony\Component\Console\Helper\TableHelper;
|
use Symfony\Component\Console\Helper\TableHelper;
|
||||||
use Symfony\Component\Console\Output\StreamOutput;
|
use Symfony\Component\Console\Output\StreamOutput;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyTableHelperTest extends \PHPUnit_Framework_TestCase
|
class LegacyTableHelperTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected $stream;
|
protected $stream;
|
||||||
|
|
|
@ -373,6 +373,9 @@ class InputDefinitionTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals('foo1 ... [fooN]', $definition->getSynopsis(), '->getSynopsis() returns a synopsis of arguments and options');
|
$this->assertEquals('foo1 ... [fooN]', $definition->getSynopsis(), '->getSynopsis() returns a synopsis of arguments and options');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyAsText()
|
public function testLegacyAsText()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -390,6 +393,9 @@ class InputDefinitionTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertStringEqualsFile(self::$fixtures.'/definition_astext.txt', $definition->asText(), '->asText() returns a textual representation of the InputDefinition');
|
$this->assertStringEqualsFile(self::$fixtures.'/definition_astext.txt', $definition->asText(), '->asText() returns a textual representation of the InputDefinition');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyAsXml()
|
public function testLegacyAsXml()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -41,6 +41,9 @@ class StringInputTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals('bar', $input->getOption('foo'));
|
$this->assertEquals('bar', $input->getOption('foo'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyInputOptionDefinitionInConstructor()
|
public function testLegacyInputOptionDefinitionInConstructor()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -359,6 +359,9 @@ class ErrorHandlerTest extends \PHPUnit_Framework_TestCase
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyInterface()
|
public function testLegacyInterface()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -37,6 +37,7 @@ class ClassNotFoundFatalErrorHandlerTest extends \PHPUnit_Framework_TestCase
|
||||||
/**
|
/**
|
||||||
* @group legacy
|
* @group legacy
|
||||||
* @dataProvider provideLegacyClassNotFoundData
|
* @dataProvider provideLegacyClassNotFoundData
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
public function testLegacyHandleClassNotFound($error, $translatedMessage, $autoloader)
|
public function testLegacyHandleClassNotFound($error, $translatedMessage, $autoloader)
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,9 @@ namespace Symfony\Component\DependencyInjection\Tests;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Reference;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyContainerBuilderTest extends \PHPUnit_Framework_TestCase
|
class LegacyContainerBuilderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
|
|
@ -13,6 +13,9 @@ namespace Symfony\Component\DependencyInjection\Tests;
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\Definition;
|
use Symfony\Component\DependencyInjection\Definition;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyDefinitionTest extends \PHPUnit_Framework_TestCase
|
class LegacyDefinitionTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
|
|
@ -60,6 +60,9 @@ class EventTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertTrue($this->event->isPropagationStopped());
|
$this->assertTrue($this->event->isPropagationStopped());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacySetDispatcher()
|
public function testLegacySetDispatcher()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -67,18 +70,27 @@ class EventTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame($this->dispatcher, $this->event->getDispatcher());
|
$this->assertSame($this->dispatcher, $this->event->getDispatcher());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetDispatcher()
|
public function testLegacyGetDispatcher()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
$this->assertNull($this->event->getDispatcher());
|
$this->assertNull($this->event->getDispatcher());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetName()
|
public function testLegacyGetName()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
$this->assertNull($this->event->getName());
|
$this->assertNull($this->event->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacySetName()
|
public function testLegacySetName()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -122,6 +122,9 @@ abstract class AbstractLayoutTest extends \Symfony\Component\Form\Test\FormInteg
|
||||||
|
|
||||||
abstract protected function setTheme(FormView $view, array $themes);
|
abstract protected function setTheme(FormView $view, array $themes);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyEnctype()
|
public function testLegacyEnctype()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -133,6 +136,9 @@ abstract class AbstractLayoutTest extends \Symfony\Component\Form\Test\FormInteg
|
||||||
$this->assertEquals('enctype="multipart/form-data"', $this->renderEnctype($form->createView()));
|
$this->assertEquals('enctype="multipart/form-data"', $this->renderEnctype($form->createView()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyNoEnctype()
|
public function testLegacyNoEnctype()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -161,6 +161,9 @@ abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame($this->values, $this->list->getValues());
|
$this->assertSame($this->values, $this->list->getValues());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoices()
|
public function testLegacyGetIndicesForChoices()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -169,6 +172,9 @@ abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForChoices($choices));
|
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForChoices($choices));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoicesPreservesKeys()
|
public function testLegacyGetIndicesForChoicesPreservesKeys()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -177,6 +183,9 @@ abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame(array(5 => $this->index1, 8 => $this->index2), $this->list->getIndicesForChoices($choices));
|
$this->assertSame(array(5 => $this->index1, 8 => $this->index2), $this->list->getIndicesForChoices($choices));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoicesPreservesOrder()
|
public function testLegacyGetIndicesForChoicesPreservesOrder()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -185,6 +194,9 @@ abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame(array($this->index2, $this->index1), $this->list->getIndicesForChoices($choices));
|
$this->assertSame(array($this->index2, $this->index1), $this->list->getIndicesForChoices($choices));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoicesIgnoresNonExistingChoices()
|
public function testLegacyGetIndicesForChoicesIgnoresNonExistingChoices()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -193,6 +205,9 @@ abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForChoices($choices));
|
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForChoices($choices));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoicesEmpty()
|
public function testLegacyGetIndicesForChoicesEmpty()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -200,6 +215,9 @@ abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame(array(), $this->list->getIndicesForChoices(array()));
|
$this->assertSame(array(), $this->list->getIndicesForChoices(array()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForValues()
|
public function testLegacyGetIndicesForValues()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -209,6 +227,9 @@ abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForValues($values));
|
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForValues($values));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForValuesPreservesKeys()
|
public function testLegacyGetIndicesForValuesPreservesKeys()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -218,6 +239,9 @@ abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame(array(5 => $this->index1, 8 => $this->index2), $this->list->getIndicesForValues($values));
|
$this->assertSame(array(5 => $this->index1, 8 => $this->index2), $this->list->getIndicesForValues($values));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForValuesPreservesOrder()
|
public function testLegacyGetIndicesForValuesPreservesOrder()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -226,6 +250,9 @@ abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame(array($this->index2, $this->index1), $this->list->getIndicesForValues($values));
|
$this->assertSame(array($this->index2, $this->index1), $this->list->getIndicesForValues($values));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForValuesIgnoresNonExistingValues()
|
public function testLegacyGetIndicesForValuesIgnoresNonExistingValues()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -234,6 +261,9 @@ abstract class AbstractChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForValues($values));
|
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForValues($values));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForValuesEmpty()
|
public function testLegacyGetIndicesForValuesEmpty()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -57,6 +57,9 @@ class LazyChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals(array(0 => new ChoiceView('a', 'a', 'A'), 2 => new ChoiceView('c', 'c', 'C')), $this->list->getRemainingViews());
|
$this->assertEquals(array(0 => new ChoiceView('a', 'a', 'A'), 2 => new ChoiceView('c', 'c', 'C')), $this->list->getRemainingViews());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoices()
|
public function testLegacyGetIndicesForChoices()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -65,6 +68,9 @@ class LazyChoiceListTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame(array(1, 2), $this->list->getIndicesForChoices($choices));
|
$this->assertSame(array(1, 2), $this->list->getIndicesForChoices($choices));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForValues()
|
public function testLegacyGetIndicesForValues()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -185,6 +185,9 @@ class ObjectChoiceListTest extends AbstractChoiceListTest
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoicesWithValuePath()
|
public function testLegacyGetIndicesForChoicesWithValuePath()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -202,6 +205,9 @@ class ObjectChoiceListTest extends AbstractChoiceListTest
|
||||||
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForChoices($choices));
|
$this->assertSame(array($this->index1, $this->index2), $this->list->getIndicesForChoices($choices));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoicesWithValuePathPreservesKeys()
|
public function testLegacyGetIndicesForChoicesWithValuePathPreservesKeys()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -218,6 +224,9 @@ class ObjectChoiceListTest extends AbstractChoiceListTest
|
||||||
$this->assertSame(array(5 => $this->index1, 8 => $this->index2), $this->list->getIndicesForChoices($choices));
|
$this->assertSame(array(5 => $this->index1, 8 => $this->index2), $this->list->getIndicesForChoices($choices));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoicesWithValuePathPreservesOrder()
|
public function testLegacyGetIndicesForChoicesWithValuePathPreservesOrder()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -234,6 +243,9 @@ class ObjectChoiceListTest extends AbstractChoiceListTest
|
||||||
$this->assertSame(array($this->index2, $this->index1), $this->list->getIndicesForChoices($choices));
|
$this->assertSame(array($this->index2, $this->index1), $this->list->getIndicesForChoices($choices));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoicesWithValuePathIgnoresNonExistingChoices()
|
public function testLegacyGetIndicesForChoicesWithValuePathIgnoresNonExistingChoices()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -15,6 +15,9 @@ use Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList;
|
||||||
|
|
||||||
class SimpleNumericChoiceListTest extends AbstractChoiceListTest
|
class SimpleNumericChoiceListTest extends AbstractChoiceListTest
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForChoicesDealsWithNumericChoices()
|
public function testLegacyGetIndicesForChoicesDealsWithNumericChoices()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -24,6 +27,9 @@ class SimpleNumericChoiceListTest extends AbstractChoiceListTest
|
||||||
$this->assertSame(array(0, 1), $this->list->getIndicesForChoices($choices));
|
$this->assertSame(array(0, 1), $this->list->getIndicesForChoices($choices));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetIndicesForValuesDealsWithNumericValues()
|
public function testLegacyGetIndicesForValuesDealsWithNumericValues()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -16,8 +16,9 @@ use Symfony\Component\Form\Extension\Csrf\CsrfProvider\DefaultCsrfProvider;
|
||||||
/**
|
/**
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
* @preserveGlobalState disabled
|
* @preserveGlobalState disabled
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class DefaultCsrfProviderTest extends \PHPUnit_Framework_TestCase
|
class LegacyDefaultCsrfProviderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected $provider;
|
protected $provider;
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,9 @@ namespace Symfony\Component\Form\Tests\Extension\Csrf\CsrfProvider;
|
||||||
|
|
||||||
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider;
|
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacySessionCsrfProviderTest extends \PHPUnit_Framework_TestCase
|
class LegacySessionCsrfProviderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected $provider;
|
protected $provider;
|
||||||
|
|
|
@ -20,6 +20,7 @@ use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyBindRequestListenerTest extends \PHPUnit_Framework_TestCase
|
class LegacyBindRequestListenerTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyFormValidatorLegacyApiTest extends FormValidatorTest
|
class LegacyFormValidatorLegacyApiTest extends FormValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,6 +13,9 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Session\Storage\Handler\LegacyPdoSessionHandler;
|
use Symfony\Component\HttpFoundation\Session\Storage\Handler\LegacyPdoSessionHandler;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyPdoSessionHandlerTest extends \PHPUnit_Framework_TestCase
|
class LegacyPdoSessionHandlerTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
private $pdo;
|
private $pdo;
|
||||||
|
|
|
@ -24,6 +24,8 @@ class ProfilerListenerTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Test to ensure BC without RequestStack
|
* Test to ensure BC without RequestStack
|
||||||
|
*
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
public function testLegacyEventsWithoutRequestStack()
|
public function testLegacyEventsWithoutRequestStack()
|
||||||
{
|
{
|
||||||
|
|
|
@ -312,6 +312,9 @@ EOF;
|
||||||
$this->assertEquals($expected, $output);
|
$this->assertEquals($expected, $output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyIsClassInActiveBundleFalse()
|
public function testLegacyIsClassInActiveBundleFalse()
|
||||||
{
|
{
|
||||||
$kernel = $this->getKernelMockForIsClassInActiveBundleTest();
|
$kernel = $this->getKernelMockForIsClassInActiveBundleTest();
|
||||||
|
@ -319,6 +322,9 @@ EOF;
|
||||||
$this->assertFalse($kernel->isClassInActiveBundle('Not\In\Active\Bundle'));
|
$this->assertFalse($kernel->isClassInActiveBundle('Not\In\Active\Bundle'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyIsClassInActiveBundleFalseNoNamespace()
|
public function testLegacyIsClassInActiveBundleFalseNoNamespace()
|
||||||
{
|
{
|
||||||
$kernel = $this->getKernelMockForIsClassInActiveBundleTest();
|
$kernel = $this->getKernelMockForIsClassInActiveBundleTest();
|
||||||
|
@ -326,6 +332,9 @@ EOF;
|
||||||
$this->assertFalse($kernel->isClassInActiveBundle('NotNamespacedClass'));
|
$this->assertFalse($kernel->isClassInActiveBundle('NotNamespacedClass'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyIsClassInActiveBundleTrue()
|
public function testLegacyIsClassInActiveBundleTrue()
|
||||||
{
|
{
|
||||||
$kernel = $this->getKernelMockForIsClassInActiveBundleTest();
|
$kernel = $this->getKernelMockForIsClassInActiveBundleTest();
|
||||||
|
|
|
@ -14,6 +14,9 @@ namespace Symfony\Component\OptionsResolver\Tests;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
use Symfony\Component\OptionsResolver\Options;
|
use Symfony\Component\OptionsResolver\Options;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyOptionsResolverTest extends \PHPUnit_Framework_TestCase
|
class LegacyOptionsResolverTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,6 +14,9 @@ namespace Symfony\Component\OptionsResolver\Tests;
|
||||||
use Symfony\Component\OptionsResolver\Options;
|
use Symfony\Component\OptionsResolver\Options;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyOptionsTest extends \PHPUnit_Framework_TestCase
|
class LegacyOptionsTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -47,6 +47,9 @@ class RouteTest extends \PHPUnit_Framework_TestCase
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetPattern()
|
public function testLegacyGetPattern()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -15,6 +15,9 @@ use Symfony\Component\Routing\Route;
|
||||||
use Symfony\Component\Routing\RouteCollection;
|
use Symfony\Component\Routing\RouteCollection;
|
||||||
use Symfony\Component\Routing\Matcher\Dumper\ApacheMatcherDumper;
|
use Symfony\Component\Routing\Matcher\Dumper\ApacheMatcherDumper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyApacheMatcherDumperTest extends \PHPUnit_Framework_TestCase
|
class LegacyApacheMatcherDumperTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected static $fixturesPath;
|
protected static $fixturesPath;
|
||||||
|
|
|
@ -15,6 +15,9 @@ use Symfony\Component\Routing\RouteCollection;
|
||||||
use Symfony\Component\Routing\RequestContext;
|
use Symfony\Component\Routing\RequestContext;
|
||||||
use Symfony\Component\Routing\Matcher\ApacheUrlMatcher;
|
use Symfony\Component\Routing\Matcher\ApacheUrlMatcher;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyApacheUrlMatcherTest extends \PHPUnit_Framework_TestCase
|
class LegacyApacheUrlMatcherTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected $server;
|
protected $server;
|
||||||
|
|
|
@ -222,6 +222,9 @@ class RouteTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertNotSame($compiled, $route->compile(), '->compile() recompiles if the route was modified');
|
$this->assertNotSame($compiled, $route->compile(), '->compile() recompiles if the route was modified');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyPattern()
|
public function testLegacyPattern()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.4
|
* @since 2.5.4
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyUserPasswordValidatorApiTest extends UserPasswordValidatorTest
|
class LegacyUserPasswordValidatorApiTest extends UserPasswordValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,9 @@ namespace Symfony\Component\Security\Tests\Core;
|
||||||
use Symfony\Component\Security\Core\SecurityContextInterface;
|
use Symfony\Component\Security\Core\SecurityContextInterface;
|
||||||
use Symfony\Component\Security\Core\Security;
|
use Symfony\Component\Security\Core\Security;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacySecurityContextInterfaceTest extends \PHPUnit_Framework_TestCase
|
class LegacySecurityContextInterfaceTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,6 +24,9 @@ class LoaderTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame($logger, $loader->getLogger(), '->setLogger() sets the logger instance');
|
$this->assertSame($logger, $loader->getLogger(), '->setLogger() sets the logger instance');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyGetSetDebugger()
|
public function testLegacyGetSetDebugger()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyAllValidatorLegacyApiTest extends AllValidatorTest
|
class LegacyAllValidatorLegacyApiTest extends AllValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyBlankValidatorLegacyApiTest extends BlankValidatorTest
|
class LegacyBlankValidatorLegacyApiTest extends BlankValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyCallbackValidatorLegacyApiTest extends CallbackValidatorTest
|
class LegacyCallbackValidatorLegacyApiTest extends CallbackValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyCardSchemeValidatorLegacyApiTest extends CardSchemeValidatorTest
|
class LegacyCardSchemeValidatorLegacyApiTest extends CardSchemeValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyChoiceValidatorLegacyApiTest extends ChoiceValidatorTest
|
class LegacyChoiceValidatorLegacyApiTest extends ChoiceValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,6 +13,9 @@ namespace Symfony\Component\Validator\Tests\Constraints;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Validation;
|
use Symfony\Component\Validator\Validation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyCollectionValidatorArrayLegacyApiTest extends CollectionValidatorArrayTest
|
class LegacyCollectionValidatorArrayLegacyApiTest extends CollectionValidatorArrayTest
|
||||||
{
|
{
|
||||||
protected function getApiVersion()
|
protected function getApiVersion()
|
||||||
|
|
|
@ -13,6 +13,9 @@ namespace Symfony\Component\Validator\Tests\Constraints;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Validation;
|
use Symfony\Component\Validator\Validation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyCollectionValidatorArrayObjectLegacyApiTest extends CollectionValidatorArrayObjectTest
|
class LegacyCollectionValidatorArrayObjectLegacyApiTest extends CollectionValidatorArrayObjectTest
|
||||||
{
|
{
|
||||||
protected function getApiVersion()
|
protected function getApiVersion()
|
||||||
|
|
|
@ -13,6 +13,9 @@ namespace Symfony\Component\Validator\Tests\Constraints;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Validation;
|
use Symfony\Component\Validator\Validation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyCollectionValidatorCustomArrayObjectLegacyApiTest extends CollectionValidatorCustomArrayObjectTest
|
class LegacyCollectionValidatorCustomArrayObjectLegacyApiTest extends CollectionValidatorCustomArrayObjectTest
|
||||||
{
|
{
|
||||||
protected function getApiVersion()
|
protected function getApiVersion()
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyCountValidatorArrayLegacyApiTest extends CountValidatorArrayTest
|
class LegacyCountValidatorArrayLegacyApiTest extends CountValidatorArrayTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyCountValidatorCountableLegacyApiTest extends CountValidatorCountableTest
|
class LegacyCountValidatorCountableLegacyApiTest extends CountValidatorCountableTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyCurrencyValidatorLegacyApiTest extends CurrencyValidatorTest
|
class LegacyCurrencyValidatorLegacyApiTest extends CurrencyValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyDateTimeValidatorLegacyApiTest extends DateTimeValidatorTest
|
class LegacyDateTimeValidatorLegacyApiTest extends DateTimeValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyDateValidatorLegacyApiTest extends DateValidatorTest
|
class LegacyDateValidatorLegacyApiTest extends DateValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyEmailValidatorLegacyApiTest extends EmailValidatorTest
|
class LegacyEmailValidatorLegacyApiTest extends EmailValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyEqualToValidatorLegacyApiTest extends EqualToValidatorTest
|
class LegacyEqualToValidatorLegacyApiTest extends EqualToValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyExpressionValidatorLegacyApiTest extends ExpressionValidatorTest
|
class LegacyExpressionValidatorLegacyApiTest extends ExpressionValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyFalseValidatorLegacyApiTest extends FalseValidatorTest
|
class LegacyFalseValidatorLegacyApiTest extends FalseValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyFileValidatorObjectLegacyApiTest extends FileValidatorObjectTest
|
class LegacyFileValidatorObjectLegacyApiTest extends FileValidatorObjectTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyFileValidatorPathLegacyApiTest extends FileValidatorPathTest
|
class LegacyFileValidatorPathLegacyApiTest extends FileValidatorPathTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyGreaterThanOrEqualValidatorLegacyApiTest extends GreaterThanOrEqualValidatorTest
|
class LegacyGreaterThanOrEqualValidatorLegacyApiTest extends GreaterThanOrEqualValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyGreaterThanValidatorLegacyApiTest extends GreaterThanValidatorTest
|
class LegacyGreaterThanValidatorLegacyApiTest extends GreaterThanValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyIbanValidatorLegacyApiTest extends IbanValidatorTest
|
class LegacyIbanValidatorLegacyApiTest extends IbanValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyIdenticalToValidatorLegacyApiTest extends IdenticalToValidatorTest
|
class LegacyIdenticalToValidatorLegacyApiTest extends IdenticalToValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyImageValidatorLegacyApiTest extends ImageValidatorTest
|
class LegacyImageValidatorLegacyApiTest extends ImageValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyIpValidatorLegacyApiTest extends IpValidatorTest
|
class LegacyIpValidatorLegacyApiTest extends IpValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyIsbnValidatorLegacyApiTest extends IsbnValidatorTest
|
class LegacyIsbnValidatorLegacyApiTest extends IsbnValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyIssnValidatorLegacyApiTest extends IssnValidatorTest
|
class LegacyIssnValidatorLegacyApiTest extends IssnValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyLanguageValidatorLegacyApiTest extends LanguageValidatorTest
|
class LegacyLanguageValidatorLegacyApiTest extends LanguageValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyLengthValidatorLegacyApiTest extends LengthValidatorTest
|
class LegacyLengthValidatorLegacyApiTest extends LengthValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyLessThanOrEqualValidatorLegacyApiTest extends LessThanOrEqualValidatorTest
|
class LegacyLessThanOrEqualValidatorLegacyApiTest extends LessThanOrEqualValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyLessThanValidatorLegacyApiTest extends LessThanValidatorTest
|
class LegacyLessThanValidatorLegacyApiTest extends LessThanValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyLocaleValidatorLegacyApiTest extends LocaleValidatorTest
|
class LegacyLocaleValidatorLegacyApiTest extends LocaleValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyLuhnValidatorLegacyApiTest extends LuhnValidatorTest
|
class LegacyLuhnValidatorLegacyApiTest extends LuhnValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyNotBlankValidatorLegacyApiTest extends NotBlankValidatorTest
|
class LegacyNotBlankValidatorLegacyApiTest extends NotBlankValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyNotEqualToValidatorLegacyApiTest extends NotEqualToValidatorTest
|
class LegacyNotEqualToValidatorLegacyApiTest extends NotEqualToValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyNotIdenticalToValidatorLegacyApiTest extends NotIdenticalToValidatorTest
|
class LegacyNotIdenticalToValidatorLegacyApiTest extends NotIdenticalToValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyNotNullValidatorLegacyApiTest extends NotNullValidatorTest
|
class LegacyNotNullValidatorLegacyApiTest extends NotNullValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyNullValidatorLegacyApiTest extends NullValidatorTest
|
class LegacyNullValidatorLegacyApiTest extends NullValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyRangeValidatorLegacyApiTest extends RangeValidatorTest
|
class LegacyRangeValidatorLegacyApiTest extends RangeValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyRegexValidatorLegacyApiTest extends RegexValidatorTest
|
class LegacyRegexValidatorLegacyApiTest extends RegexValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyTimeValidatorLegacyApiTest extends TimeValidatorTest
|
class LegacyTimeValidatorLegacyApiTest extends TimeValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyTrueValidatorLegacyApiTest extends TrueValidatorTest
|
class LegacyTrueValidatorLegacyApiTest extends TrueValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyTypeValidatorLegacyApiTest extends TypeValidatorTest
|
class LegacyTypeValidatorLegacyApiTest extends TypeValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyUrlValidatorLegacyApiTest extends UrlValidatorTest
|
class LegacyUrlValidatorLegacyApiTest extends UrlValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@ use Symfony\Component\Validator\Validation;
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
class LegacyUuidValidatorLegacyApiTest extends UuidValidatorTest
|
class LegacyUuidValidatorLegacyApiTest extends UuidValidatorTest
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,6 +20,9 @@ use Symfony\Component\Validator\ExecutionContext;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
||||||
use Symfony\Component\Validator\ValidationVisitor;
|
use Symfony\Component\Validator\ValidationVisitor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyExecutionContextTest extends \PHPUnit_Framework_TestCase
|
class LegacyExecutionContextTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
const TRANS_DOMAIN = 'trans_domain';
|
const TRANS_DOMAIN = 'trans_domain';
|
||||||
|
|
|
@ -13,6 +13,9 @@ namespace Symfony\Component\Validator\Tests\Mapping\Cache;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Mapping\Cache\ApcCache;
|
use Symfony\Component\Validator\Mapping\Cache\ApcCache;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyApcCacheTest extends \PHPUnit_Framework_TestCase
|
class LegacyApcCacheTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
|
|
@ -15,6 +15,9 @@ use Symfony\Component\Validator\Mapping\ElementMetadata;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintB;
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintB;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyElementMetadataTest extends \PHPUnit_Framework_TestCase
|
class LegacyElementMetadataTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected $metadata;
|
protected $metadata;
|
||||||
|
|
|
@ -574,6 +574,7 @@ abstract class Abstract2Dot5ApiTest extends AbstractValidatorTest
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \Symfony\Component\Validator\Exception\UnsupportedMetadataException
|
* @expectedException \Symfony\Component\Validator\Exception\UnsupportedMetadataException
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
public function testLegacyPropertyMetadataMustImplementPropertyMetadataInterface()
|
public function testLegacyPropertyMetadataMustImplementPropertyMetadataInterface()
|
||||||
{
|
{
|
||||||
|
|
|
@ -840,6 +840,7 @@ abstract class AbstractValidatorTest extends \PHPUnit_Framework_TestCase
|
||||||
* Cannot be UnsupportedMetadataException for BC with Symfony < 2.5.
|
* Cannot be UnsupportedMetadataException for BC with Symfony < 2.5.
|
||||||
*
|
*
|
||||||
* @expectedException \Symfony\Component\Validator\Exception\ValidatorException
|
* @expectedException \Symfony\Component\Validator\Exception\ValidatorException
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
public function testLegacyValidatePropertyFailsIfPropertiesNotSupported()
|
public function testLegacyValidatePropertyFailsIfPropertiesNotSupported()
|
||||||
{
|
{
|
||||||
|
@ -972,6 +973,7 @@ abstract class AbstractValidatorTest extends \PHPUnit_Framework_TestCase
|
||||||
* Cannot be UnsupportedMetadataException for BC with Symfony < 2.5.
|
* Cannot be UnsupportedMetadataException for BC with Symfony < 2.5.
|
||||||
*
|
*
|
||||||
* @expectedException \Symfony\Component\Validator\Exception\ValidatorException
|
* @expectedException \Symfony\Component\Validator\Exception\ValidatorException
|
||||||
|
* @group legacy
|
||||||
*/
|
*/
|
||||||
public function testLegacyValidatePropertyValueFailsIfPropertiesNotSupported()
|
public function testLegacyValidatePropertyValueFailsIfPropertiesNotSupported()
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,9 @@ use Symfony\Component\Validator\Context\LegacyExecutionContextFactory;
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
use Symfony\Component\Validator\Validator\LegacyValidator;
|
use Symfony\Component\Validator\Validator\LegacyValidator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyValidator2Dot5ApiTest extends Abstract2Dot5ApiTest
|
class LegacyValidator2Dot5ApiTest extends Abstract2Dot5ApiTest
|
||||||
{
|
{
|
||||||
protected function createValidator(MetadataFactoryInterface $metadataFactory, array $objectInitializers = array())
|
protected function createValidator(MetadataFactoryInterface $metadataFactory, array $objectInitializers = array())
|
||||||
|
|
|
@ -17,6 +17,9 @@ use Symfony\Component\Validator\Context\LegacyExecutionContextFactory;
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
use Symfony\Component\Validator\Validator\LegacyValidator;
|
use Symfony\Component\Validator\Validator\LegacyValidator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class LegacyValidatorLegacyApiTest extends AbstractLegacyApiTest
|
class LegacyValidatorLegacyApiTest extends AbstractLegacyApiTest
|
||||||
{
|
{
|
||||||
protected function createValidator(MetadataFactoryInterface $metadataFactory, array $objectInitializers = array())
|
protected function createValidator(MetadataFactoryInterface $metadataFactory, array $objectInitializers = array())
|
||||||
|
|
|
@ -110,6 +110,9 @@ class ValidatorBuilderTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertSame($this->builder, $this->builder->setTranslationDomain('TRANS_DOMAIN'));
|
$this->assertSame($this->builder, $this->builder->setTranslationDomain('TRANS_DOMAIN'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacyDefaultApiVersion()
|
public function testLegacyDefaultApiVersion()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
@ -124,6 +127,9 @@ class ValidatorBuilderTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->assertInstanceOf('Symfony\Component\Validator\Validator\RecursiveValidator', $this->builder->getValidator());
|
$this->assertInstanceOf('Symfony\Component\Validator\Validator\RecursiveValidator', $this->builder->getValidator());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
public function testLegacySetApiVersion24And25()
|
public function testLegacySetApiVersion24And25()
|
||||||
{
|
{
|
||||||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
|
||||||
|
|
Reference in New Issue