/**
  *
  */
 public function testLoadNonExistingInflection()
 {
     $fileSystem = $this->getFileSystem();
     $fileSystem->shouldReceive('exists')->once()->with('/app/i18n/en_US/inflection.php')->andReturn(false);
     $loader = new Loader($fileSystem, '/app/i18n');
     $this->assertEquals(null, $loader->loadInflection('en_US'));
 }
Example #2
0
 /**
  * Loads inflection closure and rules.
  *
  * @access  protected
  * @param   string     $language  Name of the language pack
  */
 protected function loadInflection($language)
 {
     $this->inflections[$language] = $this->loader->loadInflection($language);
 }