/** * passing anything other than array should invalidate the validator and not set the Input array values * Upon rendering an exception should be thrown * @expectedException Exception */ public function testInvalidInputThrowsExceptionOnRender() { $input = Form::radio('test')->setValues('invalid')->setLabels('invalid'); $input->render(); $this->fail('rendering input element with invalid attributes should throw exception'); }