Ejemplo n.º 1
0
 public function testNotInArrayTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->notInList($this->valuesArray);
     $this->runNotInArray($constraintGroup);
 }
Ejemplo n.º 2
0
 public function testIsFloatMaxValueTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isFloat(null, 1.2);
     $this->runIsFloatMaxValue($constraintGroup);
 }
Ejemplo n.º 3
0
 public function testIsNotNull()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->notNull();
     $this->runIsNotNull($constraintGroup);
 }
Ejemplo n.º 4
0
 /**
  * Generate the ConstraintGroup using the ConstraintGroupTranslater.
  */
 public function testIsBoolRequiresFalseTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isBool(false);
     $this->runTestsWithConstraintGroupRequiresFalse($constraintGroup);
     $constraintGroup = ConstraintGroupTranslator::create()->isFalse();
     $this->runTestsWithConstraintGroupRequiresFalse($constraintGroup);
 }
Ejemplo n.º 5
0
 public function testIsEmailTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isEmail();
     $this->runIsEmail($constraintGroup);
 }
Ejemplo n.º 6
0
 public function testMaxLengthCheckTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isString(null, 5);
     $this->runIsStringMaxLength($constraintGroup);
 }
Ejemplo n.º 7
0
 /**
  * Generate the ConstraintGroup using the ConstraintGroupTranslater.
  */
 public function testIsArrayTranslaterCheck()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isArray();
     $this->runTestsWithConstraintGroup($constraintGroup);
 }
Ejemplo n.º 8
0
 public function testRequiredClassTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isObject('ObjectConstraintTestObject');
     $this->runIsObjectRequiredClass($constraintGroup);
 }