/** * @expectedException \Fuel\Validation\InvalidFieldException */ public function testGetInvalidError() { $this->object->getError('test'); }