예제 #1
0
 /**
  * Tests setting an invalid upper bound using a setter.
  */
 public function testInvalidSetMax()
 {
     $this->expectException(\InvalidArgumentException::class);
     $validator = new StringLengthBetween(12, 60);
     $validator->setMax(4);
 }
예제 #2
0
 /**
  * Tests setting an invalid upper bound using a setter.
  */
 public function testInvalidSetMax()
 {
     $this->setExpectedException('\\InvalidArgumentException');
     $validator = new StringLengthBetween(12, 60);
     $validator->setMax(4);
 }