You are here

class LegacyValidatorTest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/LegacyValidatorTest.php \Symfony\Component\Validator\Tests\LegacyValidatorTest

@group legacy

Hierarchy

Expanded class hierarchy of LegacyValidatorTest

File

vendor/symfony/validator/Tests/LegacyValidatorTest.php, line 25

Namespace

Symfony\Component\Validator\Tests
View source
class LegacyValidatorTest extends AbstractLegacyApiTest {
  protected function createValidator(MetadataFactoryInterface $metadataFactory, array $objectInitializers = array()) {
    $translator = new IdentityTranslator();
    $translator
      ->setLocale('en');
    return new LegacyValidator($metadataFactory, new ConstraintValidatorFactory(), $translator, 'validators', $objectInitializers);
  }

  /**
   * @expectedException \Symfony\Component\Validator\Exception\ValidatorException
   */
  public function testValidateValueRejectsValid() {
    $this->validator
      ->validateValue(new Entity(), new Valid());
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractLegacyApiTest::$validator protected property
AbstractLegacyApiTest::setUp protected function Overrides AbstractValidatorTest::setUp
AbstractLegacyApiTest::testAddCustomizedViolation public function
AbstractLegacyApiTest::testGetMetadataFactory public function
AbstractLegacyApiTest::testInitializeObjectsOnFirstValidation public function
AbstractLegacyApiTest::testRecursiveTraversableRecursiveTraversalDisabled public function @expectedException \Symfony\Component\Validator\Exception\NoSuchMetadataException
AbstractLegacyApiTest::testTraversableTraverseDisabled public function @expectedException \Symfony\Component\Validator\Exception\NoSuchMetadataException
AbstractLegacyApiTest::testValidateArrayInContext public function
AbstractLegacyApiTest::testValidateInContext public function
AbstractLegacyApiTest::validate protected function Overrides AbstractValidatorTest::validate
AbstractLegacyApiTest::validateProperty protected function Overrides AbstractValidatorTest::validateProperty
AbstractLegacyApiTest::validatePropertyValue protected function Overrides AbstractValidatorTest::validatePropertyValue
AbstractValidatorTest::$metadata public property
AbstractValidatorTest::$metadataFactory public property
AbstractValidatorTest::$referenceMetadata public property
AbstractValidatorTest::ENTITY_CLASS constant
AbstractValidatorTest::REFERENCE_CLASS constant
AbstractValidatorTest::tearDown protected function
AbstractValidatorTest::testArray public function
AbstractValidatorTest::testArrayReference public function
AbstractValidatorTest::testArrayTraversalCannotBeDisabled public function
AbstractValidatorTest::testClassConstraint public function
AbstractValidatorTest::testDisableTraversableTraversal public function
AbstractValidatorTest::testEnableRecursiveTraversableTraversal public function
AbstractValidatorTest::testFailOnScalarReferences public function @expectedException \Symfony\Component\Validator\Exception\NoSuchMetadataException
AbstractValidatorTest::testGetterConstraint public function
AbstractValidatorTest::testIgnoreNullDuringArrayTraversal public function
AbstractValidatorTest::testIgnoreScalarsDuringArrayTraversal public function
AbstractValidatorTest::testLegacyValidatePropertyFailsIfPropertiesNotSupported public function Cannot be UnsupportedMetadataException for BC with Symfony < 2.5.
AbstractValidatorTest::testLegacyValidatePropertyValueFailsIfPropertiesNotSupported public function Cannot be UnsupportedMetadataException for BC with Symfony < 2.5.
AbstractValidatorTest::testMetadataMustExistIfTraversalIsDisabled public function @expectedException \Symfony\Component\Validator\Exception\NoSuchMetadataException
AbstractValidatorTest::testPropagateDefaultGroupToReferenceWhenReplacingDefaultGroup public function
AbstractValidatorTest::testPropertyConstraint public function
AbstractValidatorTest::testRecursiveArray public function
AbstractValidatorTest::testRecursiveArrayReference public function
AbstractValidatorTest::testRecursiveArrayTraversalCannotBeDisabled public function
AbstractValidatorTest::testRecursiveTraversable public function
AbstractValidatorTest::testReferenceClassConstraint public function
AbstractValidatorTest::testReferenceGetterConstraint public function
AbstractValidatorTest::testReferencePropertyConstraint public function
AbstractValidatorTest::testReplaceDefaultGroupByGroupSequenceArray public function
AbstractValidatorTest::testReplaceDefaultGroupByGroupSequenceObject public function
AbstractValidatorTest::testReplaceDefaultGroupWithArrayFromGroupSequenceProvider public function
AbstractValidatorTest::testReplaceDefaultGroupWithObjectFromGroupSequenceProvider public function
AbstractValidatorTest::testsIgnoreNullReference public function
AbstractValidatorTest::testTraversable public function
AbstractValidatorTest::testTraversableReference public function
AbstractValidatorTest::testValidate public function
AbstractValidatorTest::testValidateCustomGroupWhenDefaultGroupWasReplaced public function
AbstractValidatorTest::testValidateDifferentObjectsSeparately public function
AbstractValidatorTest::testValidateMultipleGroups public function
AbstractValidatorTest::testValidateObjectOnlyOncePerGroup public function
AbstractValidatorTest::testValidateProperty public function
AbstractValidatorTest::testValidatePropertyValue public function
AbstractValidatorTest::testValidatePropertyValueWithClassName public function
AbstractValidatorTest::testValidatePropertyValueWithoutConstraints public function https://github.com/symfony/symfony/issues/11604.
AbstractValidatorTest::testValidatePropertyWithoutConstraints public function https://github.com/symfony/symfony/issues/11604.
AbstractValidatorTest::testValidateSingleGroup public function
LegacyValidatorTest::createValidator protected function Overrides AbstractLegacyApiTest::createValidator
LegacyValidatorTest::testValidateValueRejectsValid public function @expectedException \Symfony\Component\Validator\Exception\ValidatorException