/** * @expectedException \RuntimeException * @expectedExceptionMessage mako\i18n\I18n::pluralize(): The [ en_US ] language pack does not include any inflection rules. */ public function testPluralizeWithoutPluralizationRules() { $loader = $this->getLoader(); $loader->shouldReceive('loadInflection')->once()->with('en_US')->andReturn(null); $i18n = new I18n($loader, 'en_US'); $i18n->pluralize('apple'); }