public function testNotInArrayTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->notInList($this->valuesArray);
     $this->runNotInArray($constraintGroup);
 }
 public function testIsFloatMaxValueTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isFloat(null, 1.2);
     $this->runIsFloatMaxValue($constraintGroup);
 }
Esempio n. 3
0
 public function testIsNotNull()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->notNull();
     $this->runIsNotNull($constraintGroup);
 }
Esempio 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);
 }
 public function testIsEmailTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isEmail();
     $this->runIsEmail($constraintGroup);
 }
 public function testMaxLengthCheckTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isString(null, 5);
     $this->runIsStringMaxLength($constraintGroup);
 }
 /**
  * Generate the ConstraintGroup using the ConstraintGroupTranslater.
  */
 public function testIsArrayTranslaterCheck()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isArray();
     $this->runTestsWithConstraintGroup($constraintGroup);
 }
 public function testRequiredClassTranslator()
 {
     $constraintGroup = ConstraintGroupTranslator::create()->isObject('ObjectConstraintTestObject');
     $this->runIsObjectRequiredClass($constraintGroup);
 }