/** * Tests setting an invalid lower bound using a setter. */ public function testInvalidSetMin() { $this->expectException(\InvalidArgumentException::class); $validator = new StringLengthBetween(2, 6); $validator->setMin(12); }
/** * Tests setting an invalid lower bound using a setter. */ public function testInvalidSetMin() { $this->setExpectedException('\\InvalidArgumentException'); $validator = new StringLengthBetween(2, 6); $validator->setMin(12); }