You are here

class ValidatorTest in Plug 7

Hierarchy

  • class \Symfony\Component\Validator\Tests\Validator\AbstractValidatorTest extends \Symfony\Component\Validator\Tests\Validator\PHPUnit_Framework_TestCase

Expanded class hierarchy of ValidatorTest

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/ValidatorTest.php, line 22

Namespace

Symfony\Component\Validator\Tests
View source
class ValidatorTest extends AbstractLegacyApiTest {
  protected function createValidator(MetadataFactoryInterface $metadataFactory, array $objectInitializers = array()) {
    return new LegacyValidator($metadataFactory, new ConstraintValidatorFactory(), new DefaultTranslator(), '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 1
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
ValidatorTest::createValidator protected function Overrides AbstractLegacyApiTest::createValidator
ValidatorTest::testValidateValueRejectsValid public function @expectedException \Symfony\Component\Validator\Exception\ValidatorException