Example #1
0
 /**
  * Ensures that the validator follows expected behavior
  *
  * @return void
  */
 public function testGetType()
 {
     $this->assertEquals(493, $this->validator->getType());
 }
Example #2
0
 public function testTypeAutoDetectionHasNoSideEffect()
 {
     $validator = new NotEmpty(array('translatorEnabled' => true));
     $this->assertEquals($validator->getDefaultType(), $validator->getType());
 }