Пример #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);
 }