Ejemplo n.º 1
0
 /**
  * Returns yaml loader model instance
  *
  * @param string|null $testCaseClass
  * @return EcomDev_PHPUnit_Model_Yaml_Loader
  */
 public static function getYamlLoader($testCaseClass = null)
 {
     if ($testCaseClass !== null) {
         self::$yamlLoaderModelAlias = self::getLoadableClassAlias($testCaseClass, 'yaml', self::XML_PATH_DEFAULT_YAML_LOADER_MODEL);
     } elseif (self::$yamlLoaderModelAlias === null) {
         self::$yamlLoaderModelAlias = self::getLoadableClassAlias(get_called_class(), 'yaml', self::XML_PATH_DEFAULT_YAML_LOADER_MODEL);
     }
     return Mage::getSingleton(self::$yamlLoaderModelAlias);
 }