/** * @expectedException CM_Exception_Invalid * @expectedExceptionMessageRegexp No currency with abbreviation `\w+` set */ public function testGetByAbbreviationThrows() { CM_Model_Currency::getByAbbreviation('XYZ'); }