示例#1
0
 /**
  * Loads all strings for the language.
  *
  * @access  protected
  * @param   string     $language  Name of the language pack
  * @param   file       $file      File from which we are loading the strings
  */
 protected function loadStrings($language, $file)
 {
     if ($this->cache !== null) {
         if ($this->loadFromCache($language, $file)) {
             return;
         }
         $this->rebuildCache = true;
     }
     $this->strings[$language][$file] = $this->loader->loadStrings($language, $file);
 }
 /**
  *
  */
 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'));
 }