/** * test remove validation */ public function testRemoveValidation() { $input = new TextInput('foo', 'value'); $input->addValidation('required|min:5|max:25|not_in:14,15,16'); // should remove based on the raw rule name $input->removeValidation('min|max:25'); $expected = array('required', 'not_in:14,15,16'); $this->assertEquals($expected, $input->getValidations()); }