public function testLengthOutsideBoundsShouldThrowLengthException($string, $min, $max) { $validator = new Length($min, $max, false); $this->assertFalse($validator->validate($string)); $this->assertNotEmpty($validator->getTemplate()); }