/** * @expectedException \Zend\I18n\Exception\InvalidArgumentException */ public function testGetRegexComponentsShouldThrowInvalidArgumentExceptionWhenRegexComponentDoesNotExists() { $filter = new Uncurrency('it_IT'); $filter->filter('1.234,61 €'); $filter->getRegexComponent(-1); }