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