Merge branch '5.1' into 5.x

This commit is contained in:
Alexander M. Turek 2020-11-01 17:14:45 +01:00
commit 8bac7a0b5e
33 changed files with 209 additions and 73 deletions

View File

@ -24,7 +24,7 @@ use Symfony\Component\Form\Test\FormPerformanceTestCase;
*/ */
class EntityTypePerformanceTest extends FormPerformanceTestCase class EntityTypePerformanceTest extends FormPerformanceTestCase
{ {
const ENTITY_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity'; private const ENTITY_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity';
/** /**
* @var \Doctrine\ORM\EntityManager * @var \Doctrine\ORM\EntityManager

View File

@ -39,14 +39,14 @@ class EntityTypeTest extends BaseTypeTest
{ {
const TESTED_TYPE = 'Symfony\Bridge\Doctrine\Form\Type\EntityType'; const TESTED_TYPE = 'Symfony\Bridge\Doctrine\Form\Type\EntityType';
const ITEM_GROUP_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\GroupableEntity'; private const ITEM_GROUP_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\GroupableEntity';
const SINGLE_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity'; private const SINGLE_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity';
const SINGLE_IDENT_NO_TO_STRING_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdNoToStringEntity'; private const SINGLE_IDENT_NO_TO_STRING_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdNoToStringEntity';
const SINGLE_STRING_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleStringIdEntity'; private const SINGLE_STRING_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleStringIdEntity';
const SINGLE_ASSOC_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleAssociationToIntIdEntity'; private const SINGLE_ASSOC_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleAssociationToIntIdEntity';
const SINGLE_STRING_CASTABLE_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleStringCastableIdEntity'; private const SINGLE_STRING_CASTABLE_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleStringCastableIdEntity';
const COMPOSITE_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\CompositeIntIdEntity'; private const COMPOSITE_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\CompositeIntIdEntity';
const COMPOSITE_STRING_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\CompositeStringIdEntity'; private const COMPOSITE_STRING_IDENT_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\CompositeStringIdEntity';
/** /**
* @var EntityManager * @var EntityManager

View File

@ -23,7 +23,7 @@ class DoctrineFooType extends Type
/** /**
* Type name. * Type name.
*/ */
const NAME = 'foo'; private const NAME = 'foo';
/** /**
* {@inheritdoc} * {@inheritdoc}

View File

@ -40,7 +40,7 @@ use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
*/ */
class UniqueEntityValidatorTest extends ConstraintValidatorTestCase class UniqueEntityValidatorTest extends ConstraintValidatorTestCase
{ {
const EM_NAME = 'foo'; private const EM_NAME = 'foo';
/** /**
* @var ObjectManager * @var ObjectManager

View File

@ -23,7 +23,7 @@ use Symfony\Component\Security\Http\Firewall\LogoutListener;
class FirewallMapTest extends TestCase class FirewallMapTest extends TestCase
{ {
const ATTRIBUTE_FIREWALL_CONTEXT = '_firewall_context'; private const ATTRIBUTE_FIREWALL_CONTEXT = '_firewall_context';
public function testGetListenersWithEmptyMap() public function testGetListenersWithEmptyMap()
{ {

View File

@ -19,10 +19,9 @@ use Symfony\Contracts\EventDispatcher\Event;
class EventDispatcherTest extends TestCase class EventDispatcherTest extends TestCase
{ {
/* Some pseudo events */ /* Some pseudo events */
const preFoo = 'pre.foo'; private const preFoo = 'pre.foo';
const postFoo = 'post.foo'; private const postFoo = 'post.foo';
const preBar = 'pre.bar'; private const preBar = 'pre.bar';
const postBar = 'post.bar';
/** /**
* @var EventDispatcher * @var EventDispatcher

View File

@ -12,7 +12,127 @@
</trans-unit> </trans-unit>
<trans-unit id="30"> <trans-unit id="30">
<source>The CSRF token is invalid. Please try to resubmit the form.</source> <source>The CSRF token is invalid. Please try to resubmit the form.</source>
<target>CSRF-token er ugyldig.</target> <target>CSRF-token er ugyldig. Prøv venligst at genindsende.</target>
</trans-unit>
<trans-unit id="99">
<source>This value is not a valid HTML5 color.</source>
<target>Værdien er ikke en gyldig HTML5 farve.</target>
</trans-unit>
<trans-unit id="100">
<source>Please enter a valid birthdate.</source>
<target>Indtast venligst en gyldig fødselsdato.</target>
</trans-unit>
<trans-unit id="101">
<source>The selected choice is invalid.</source>
<target>Den valgte mulighed er ugyldig .</target>
</trans-unit>
<trans-unit id="102">
<source>The collection is invalid.</source>
<target>Samlingen er ugyldig.</target>
</trans-unit>
<trans-unit id="103">
<source>Please select a valid color.</source>
<target>Vælg venligst en gyldig farve.</target>
</trans-unit>
<trans-unit id="104">
<source>Please select a valid country.</source>
<target>Vælg venligst et gyldigt land.</target>
</trans-unit>
<trans-unit id="105">
<source>Please select a valid currency.</source>
<target>Vælg venligst en gyldig valuta.</target>
</trans-unit>
<trans-unit id="106">
<source>Please choose a valid date interval.</source>
<target>Vælg venligst et gyldigt datointerval.</target>
</trans-unit>
<trans-unit id="107">
<source>Please enter a valid date and time.</source>
<target>Vælg venligst en gyldig dato og tid.</target>
</trans-unit>
<trans-unit id="108">
<source>Please enter a valid date.</source>
<target>Vælg venligst en gyldig dato.</target>
</trans-unit>
<trans-unit id="109">
<source>Please select a valid file.</source>
<target>Vælg venligst en gyldig fil.</target>
</trans-unit>
<trans-unit id="110">
<source>The hidden field is invalid.</source>
<target>Det skjulte felt er ugyldigt.</target>
</trans-unit>
<trans-unit id="111">
<source>Please enter an integer.</source>
<target>Indsæt veligst et heltal.</target>
</trans-unit>
<trans-unit id="112">
<source>Please select a valid language.</source>
<target>Vælg venligst et gyldigt sprog.</target>
</trans-unit>
<trans-unit id="113">
<source>Please select a valid locale.</source>
<target>Vælg venligst en gyldigt sprogkode.</target>
</trans-unit>
<trans-unit id="114">
<source>Please enter a valid money amount.</source>
<target>Vælg venligst et gyldigt beløb.</target>
</trans-unit>
<trans-unit id="115">
<source>Please enter a number.</source>
<target>Indtast venligst et nummer.</target>
</trans-unit>
<trans-unit id="116">
<source>The password is invalid.</source>
<target>Passwordet er ugyldigt.</target>
</trans-unit>
<trans-unit id="117">
<source>Please enter a percentage value.</source>
<target>Indtast venligst en procentværdi.</target>
</trans-unit>
<trans-unit id="118">
<source>The values do not match.</source>
<target>Værdierne er ikke ens.</target>
</trans-unit>
<trans-unit id="119">
<source>Please enter a valid time.</source>
<target>Indtast venligst en gyldig tid.</target>
</trans-unit>
<trans-unit id="120">
<source>Please select a valid timezone.</source>
<target>Vælg venligst en gyldig tidszone.</target>
</trans-unit>
<trans-unit id="121">
<source>Please enter a valid URL.</source>
<target>Indtast venligst en gyldig URL.</target>
</trans-unit>
<trans-unit id="122">
<source>Please enter a valid search term.</source>
<target>Indtast venligst et gyldigt søgeord.</target>
</trans-unit>
<trans-unit id="123">
<source>Please provide a valid phone number.</source>
<target>Giv venligst et gyldigt telefonnummer.</target>
</trans-unit>
<trans-unit id="124">
<source>The checkbox has an invalid value.</source>
<target>Checkboxen har en ugyldigt værdi.</target>
</trans-unit>
<trans-unit id="125">
<source>Please enter a valid email address.</source>
<target>Indtast venligst en gyldig emailaddresse.</target>
</trans-unit>
<trans-unit id="126">
<source>Please select a valid option.</source>
<target>Vælg venligst en gyldig mulighed.</target>
</trans-unit>
<trans-unit id="127">
<source>Please select a valid range.</source>
<target>Vælg venligst et gyldigt interval .</target>
</trans-unit>
<trans-unit id="128">
<source>Please enter a valid week.</source>
<target>Indtast venligst en gyldig uge.</target>
</trans-unit> </trans-unit>
</body> </body>
</file> </file>

View File

@ -17,7 +17,7 @@
<trans-unit id="99"> <trans-unit id="99">
<source>This value is not a valid HTML5 color.</source> <source>This value is not a valid HTML5 color.</source>
<target>Este valor non é unha cor HTML5 válida.</target> <target>Este valor non é unha cor HTML5 válida.</target>
</trans-unit>. </trans-unit>
<trans-unit id="100"> <trans-unit id="100">
<source>Please enter a valid birthdate.</source> <source>Please enter a valid birthdate.</source>
<target>Insire unha data de aniversario válida.</target> <target>Insire unha data de aniversario válida.</target>

View File

@ -16,7 +16,7 @@ use Symfony\Component\Form\Extension\Core\DataTransformer\BooleanToStringTransfo
class BooleanToStringTransformerTest extends TestCase class BooleanToStringTransformerTest extends TestCase
{ {
const TRUE_VALUE = '1'; private const TRUE_VALUE = '1';
/** /**
* @var BooleanToStringTransformer * @var BooleanToStringTransformer

View File

@ -34,10 +34,10 @@ use Symfony\Contracts\Translation\TranslatorInterface;
*/ */
class ViolationMapperTest extends TestCase class ViolationMapperTest extends TestCase
{ {
const LEVEL_0 = 0; private const LEVEL_0 = 0;
const LEVEL_1 = 1; private const LEVEL_1 = 1;
const LEVEL_1B = 2; private const LEVEL_1B = 2;
const LEVEL_2 = 3; private const LEVEL_2 = 3;
/** /**
* @var EventDispatcherInterface * @var EventDispatcherInterface

View File

@ -20,8 +20,8 @@ use Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHan
*/ */
class MemcachedSessionHandlerTest extends TestCase class MemcachedSessionHandlerTest extends TestCase
{ {
const PREFIX = 'prefix_'; private const PREFIX = 'prefix_';
const TTL = 1000; private const TTL = 1000;
/** /**
* @var MemcachedSessionHandler * @var MemcachedSessionHandler

View File

@ -21,7 +21,7 @@ use Symfony\Component\Intl\Exception\ResourceBundleNotFoundException;
*/ */
class BundleEntryReaderTest extends TestCase class BundleEntryReaderTest extends TestCase
{ {
const RES_DIR = '/res/dir'; private const RES_DIR = '/res/dir';
/** /**
* @var BundleEntryReader * @var BundleEntryReader

View File

@ -23,7 +23,7 @@ class GitRepositoryTest extends TestCase
{ {
private $targetDir; private $targetDir;
const REPO_URL = 'https://github.com/symfony/intl.git'; private const REPO_URL = 'https://github.com/symfony/intl.git';
/** /**
* @before * @before

View File

@ -25,7 +25,7 @@ use Symfony\Component\Ldap\Tests\LdapTestCase;
*/ */
class AdapterTest extends LdapTestCase class AdapterTest extends LdapTestCase
{ {
const PAGINATION_REQUIRED_CONFIG = [ private const PAGINATION_REQUIRED_CONFIG = [
'options' => [ 'options' => [
'protocol_version' => 3, 'protocol_version' => 3,
], ],

View File

@ -20,7 +20,7 @@ use Symfony\Component\PropertyAccess\PropertyPathBuilder;
*/ */
class PropertyPathBuilderTest extends TestCase class PropertyPathBuilderTest extends TestCase
{ {
const PREFIX = 'old1[old2].old3[old4][old5].old6'; private const PREFIX = 'old1[old2].old3[old4][old5].old6';
/** /**
* @var PropertyPathBuilder * @var PropertyPathBuilder

View File

@ -30,10 +30,6 @@
<source>Invalid CSRF token.</source> <source>Invalid CSRF token.</source>
<target>Ongeldige CSRF-teken.</target> <target>Ongeldige CSRF-teken.</target>
</trans-unit> </trans-unit>
<trans-unit id="8">
<source>Digest nonce has expired.</source>
<target>Digest nonce het verval.</target>
</trans-unit>
<trans-unit id="9"> <trans-unit id="9">
<source>No authentication provider found to support the authentication token.</source> <source>No authentication provider found to support the authentication token.</source>
<target>Geen verifikasieverskaffer is gevind wat die verifikasietoken kan ondersteun nie.</target> <target>Geen verifikasieverskaffer is gevind wat die verifikasietoken kan ondersteun nie.</target>

View File

@ -30,10 +30,6 @@
<source>Invalid CSRF token.</source> <source>Invalid CSRF token.</source>
<target>CSRF žeton (token) je neispravan.</target> <target>CSRF žeton (token) je neispravan.</target>
</trans-unit> </trans-unit>
<trans-unit id="8">
<source>Digest nonce has expired.</source>
<target>Digest nonce je istekao.</target>
</trans-unit>
<trans-unit id="9"> <trans-unit id="9">
<source>No authentication provider found to support the authentication token.</source> <source>No authentication provider found to support the authentication token.</source>
<target>Nije pronađen autentifikacijski provajder koji bi podržao dati autentifikacijski žeton (token).</target> <target>Nije pronađen autentifikacijski provajder koji bi podržao dati autentifikacijski žeton (token).</target>

View File

@ -8,7 +8,7 @@
</trans-unit> </trans-unit>
<trans-unit id="2"> <trans-unit id="2">
<source>Authentication credentials could not be found.</source> <source>Authentication credentials could not be found.</source>
<target>Loginoplysninger kan findes.</target> <target>Loginoplysninger kan ikke findes.</target>
</trans-unit> </trans-unit>
<trans-unit id="3"> <trans-unit id="3">
<source>Authentication request could not be processed due to a system problem.</source> <source>Authentication request could not be processed due to a system problem.</source>
@ -62,6 +62,14 @@
<source>Account is locked.</source> <source>Account is locked.</source>
<target>Brugerkonto er låst.</target> <target>Brugerkonto er låst.</target>
</trans-unit> </trans-unit>
<trans-unit id="17">
<source>Too many failed login attempts, please try again later.</source>
<target>For mange fejlede login forsøg, prøv venligst senere.</target>
</trans-unit>
<trans-unit id="18">
<source>Invalid or expired login link.</source>
<target>Ugyldigt eller udløbet login link.</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View File

@ -23,8 +23,8 @@ use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
*/ */
abstract class UserPasswordValidatorTest extends ConstraintValidatorTestCase abstract class UserPasswordValidatorTest extends ConstraintValidatorTestCase
{ {
const PASSWORD = 's3Cr3t'; private const PASSWORD = 's3Cr3t';
const SALT = '^S4lt$'; private const SALT = '^S4lt$';
/** /**
* @var TokenStorageInterface * @var TokenStorageInterface

View File

@ -19,7 +19,7 @@ use Symfony\Component\Security\Csrf\TokenGenerator\UriSafeTokenGenerator;
*/ */
class UriSafeTokenGeneratorTest extends TestCase class UriSafeTokenGeneratorTest extends TestCase
{ {
const ENTROPY = 1000; private const ENTROPY = 1000;
/** /**
* A non alpha-numeric byte string. * A non alpha-numeric byte string.

View File

@ -22,7 +22,7 @@ use Symfony\Component\Security\Csrf\TokenStorage\NativeSessionTokenStorage;
*/ */
class NativeSessionTokenStorageTest extends TestCase class NativeSessionTokenStorageTest extends TestCase
{ {
const SESSION_NAMESPACE = 'foobar'; private const SESSION_NAMESPACE = 'foobar';
/** /**
* @var NativeSessionTokenStorage * @var NativeSessionTokenStorage

View File

@ -21,7 +21,7 @@ use Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage;
*/ */
class SessionTokenStorageTest extends TestCase class SessionTokenStorageTest extends TestCase
{ {
const SESSION_NAMESPACE = 'foobar'; private const SESSION_NAMESPACE = 'foobar';
/** /**
* @var Session * @var Session

View File

@ -29,9 +29,8 @@ class FormLoginAuthenticatorTest extends TestCase
private $requestWithSession; private $requestWithSession;
private $authenticator; private $authenticator;
const LOGIN_URL = 'http://login'; private const LOGIN_URL = 'http://login';
const DEFAULT_SUCCESS_URL = 'http://defaultsuccess'; private const DEFAULT_SUCCESS_URL = 'http://defaultsuccess';
const CUSTOM_SUCCESS_URL = 'http://customsuccess';
public function testAuthenticationFailureWithoutSession() public function testAuthenticationFailureWithoutSession()
{ {

View File

@ -16,9 +16,9 @@ use Symfony\Component\Serializer\Encoder\ChainDecoder;
class ChainDecoderTest extends TestCase class ChainDecoderTest extends TestCase
{ {
const FORMAT_1 = 'format1'; private const FORMAT_1 = 'format1';
const FORMAT_2 = 'format2'; private const FORMAT_2 = 'format2';
const FORMAT_3 = 'format3'; private const FORMAT_3 = 'format3';
private $chainDecoder; private $chainDecoder;
private $decoder1; private $decoder1;

View File

@ -18,9 +18,9 @@ use Symfony\Component\Serializer\Encoder\NormalizationAwareInterface;
class ChainEncoderTest extends TestCase class ChainEncoderTest extends TestCase
{ {
const FORMAT_1 = 'format1'; private const FORMAT_1 = 'format1';
const FORMAT_2 = 'format2'; private const FORMAT_2 = 'format2';
const FORMAT_3 = 'format3'; private const FORMAT_3 = 'format3';
private $chainEncoder; private $chainEncoder;
private $encoder1; private $encoder1;

View File

@ -20,9 +20,9 @@ use Symfony\Component\Serializer\Normalizer\DataUriNormalizer;
*/ */
class DataUriNormalizerTest extends TestCase class DataUriNormalizerTest extends TestCase
{ {
const TEST_GIF_DATA = 'data:image/gif;base64,R0lGODdhAQABAIAAAP///////ywAAAAAAQABAAACAkQBADs='; private const TEST_GIF_DATA = 'data:image/gif;base64,R0lGODdhAQABAIAAAP///////ywAAAAAAQABAAACAkQBADs=';
const TEST_TXT_DATA = 'data:text/plain,K%C3%A9vin%20Dunglas%0A'; private const TEST_TXT_DATA = 'data:text/plain,K%C3%A9vin%20Dunglas%0A';
const TEST_TXT_CONTENT = "Kévin Dunglas\n"; private const TEST_TXT_CONTENT = "Kévin Dunglas\n";
/** /**
* @var DataUriNormalizer * @var DataUriNormalizer

View File

@ -23,7 +23,7 @@ use Symfony\Component\Stopwatch\StopwatchEvent;
*/ */
class StopwatchEventTest extends TestCase class StopwatchEventTest extends TestCase
{ {
const DELTA = 37; private const DELTA = 37;
public function testGetOrigin() public function testGetOrigin()
{ {

View File

@ -23,7 +23,7 @@ use Symfony\Component\Stopwatch\Stopwatch;
*/ */
class StopwatchTest extends TestCase class StopwatchTest extends TestCase
{ {
const DELTA = 20; private const DELTA = 20;
public function testStart() public function testStart()
{ {

View File

@ -124,7 +124,7 @@
</trans-unit> </trans-unit>
<trans-unit id="34"> <trans-unit id="34">
<source>The file could not be uploaded.</source> <source>The file could not be uploaded.</source>
<target>Filen kunne ikke blive uploadet.</target> <target>Filen kunne ikke uploades.</target>
</trans-unit> </trans-unit>
<trans-unit id="35"> <trans-unit id="35">
<source>This value should be a valid number.</source> <source>This value should be a valid number.</source>
@ -324,7 +324,7 @@
</trans-unit> </trans-unit>
<trans-unit id="84"> <trans-unit id="84">
<source>This value should be a multiple of {{ compared_value }}.</source> <source>This value should be a multiple of {{ compared_value }}.</source>
<target>Denne værdi skal være et flertal af {{ compared_value }}.</target> <target>Denne værdi skal være et multiplikation af {{ compared_value }}.</target>
</trans-unit> </trans-unit>
<trans-unit id="85"> <trans-unit id="85">
<source>This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}.</source> <source>This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}.</source>
@ -366,6 +366,26 @@
<source>This value should be between {{ min }} and {{ max }}.</source> <source>This value should be between {{ min }} and {{ max }}.</source>
<target>Værdien skal være mellem {{ min }} og {{ max }}.</target> <target>Værdien skal være mellem {{ min }} og {{ max }}.</target>
</trans-unit> </trans-unit>
<trans-unit id="95">
<source>This value is not a valid hostname.</source>
<target>Værdien er ikke et gyldigt værtsnavn.</target>
</trans-unit>
<trans-unit id="96">
<source>The number of elements in this collection should be a multiple of {{ compared_value }}.</source>
<target>Antallet af elementer i denne samling skal være en multiplikation af {{ compared_value }}.</target>
</trans-unit>
<trans-unit id="97">
<source>This value should satisfy at least one of the following constraints:</source>
<target>Værdien skal overholde mindst én af følgende krav::</target>
</trans-unit>
<trans-unit id="98">
<source>Each element of this collection should satisfy its own set of constraints.</source>
<target>Hvert element i denne samling skal overholde dens egne krav.</target>
</trans-unit>
<trans-unit id="99">
<source>This value is not a valid International Securities Identification Number (ISIN).</source>
<target>Værdien er ikke et gyldig International Securities Identification Number (ISIN).</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View File

@ -30,10 +30,10 @@ use Symfony\Component\Validator\Tests\Fixtures\PropertyConstraint;
class ClassMetadataTest extends TestCase class ClassMetadataTest extends TestCase
{ {
const CLASSNAME = Entity::class; private const CLASSNAME = Entity::class;
const PARENTCLASS = EntityParent::class; private const PARENTCLASS = EntityParent::class;
const PROVIDERCLASS = GroupSequenceProviderEntity::class; private const PROVIDERCLASS = GroupSequenceProviderEntity::class;
const PROVIDERCHILDCLASS = 'Symfony\Component\Validator\Tests\Fixtures\GroupSequenceProviderChildEntity'; private const PROVIDERCHILDCLASS = 'Symfony\Component\Validator\Tests\Fixtures\GroupSequenceProviderChildEntity';
protected $metadata; protected $metadata;

View File

@ -27,11 +27,9 @@ use Symfony\Component\Validator\Tests\Fixtures\PropertyGetterInterface;
class LazyLoadingMetadataFactoryTest extends TestCase class LazyLoadingMetadataFactoryTest extends TestCase
{ {
const CLASS_NAME = Entity::class; private const CLASS_NAME = Entity::class;
const PARENT_CLASS = EntityParent::class; private const PARENT_CLASS = EntityParent::class;
const INTERFACE_A_CLASS = 'Symfony\Component\Validator\Tests\Fixtures\EntityInterfaceA'; private const INTERFACE_A_CLASS = 'Symfony\Component\Validator\Tests\Fixtures\EntityInterfaceA';
const INTERFACE_B_CLASS = 'Symfony\Component\Validator\Tests\Fixtures\EntityInterfaceB';
const PARENT_INTERFACE_CLASS = 'Symfony\Component\Validator\Tests\Fixtures\EntityParentInterface';
public function testLoadClassMetadataWithInterface() public function testLoadClassMetadataWithInterface()
{ {

View File

@ -17,7 +17,7 @@ use Symfony\Component\Validator\Tests\Fixtures\Annotation\Entity;
class GetterMetadataTest extends TestCase class GetterMetadataTest extends TestCase
{ {
const CLASSNAME = Entity::class; private const CLASSNAME = Entity::class;
public function testInvalidPropertyName() public function testInvalidPropertyName()
{ {

View File

@ -20,10 +20,10 @@ use Symfony\Component\Validator\Tests\Fixtures\Entity_74_Proxy;
class PropertyMetadataTest extends TestCase class PropertyMetadataTest extends TestCase
{ {
const CLASSNAME = Entity::class; private const CLASSNAME = Entity::class;
const CLASSNAME_74 = 'Symfony\Component\Validator\Tests\Fixtures\Entity_74'; private const CLASSNAME_74 = 'Symfony\Component\Validator\Tests\Fixtures\Entity_74';
const CLASSNAME_74_PROXY = 'Symfony\Component\Validator\Tests\Fixtures\Entity_74_Proxy'; private const CLASSNAME_74_PROXY = 'Symfony\Component\Validator\Tests\Fixtures\Entity_74_Proxy';
const PARENTCLASS = EntityParent::class; private const PARENTCLASS = EntityParent::class;
public function testInvalidPropertyName() public function testInvalidPropertyName()
{ {