Example #1
0
 /**
  * Returns a normalized version of the reference map
  *
  * @return array
  */
 protected function _getReferenceMapNormalized()
 {
     $maps = parent::_getReferenceMapNormalized();
     foreach ($maps as $rule => $map) {
         if (isset($map[self::REF_TABLE_CLASS])) {
             $maps[$rule][self::REF_TABLE_CLASS] = Enlight_Class::getClassName($map[self::REF_TABLE_CLASS]);
         }
     }
     return $maps;
 }
Example #2
0
 /**
  * Returns a mock object for the specified class.
  *
  * @param  string  $originalClassName
  * @param  array   $methods
  * @param  array   $arguments
  * @param  string  $mockClassName
  * @param  boolean $callOriginalConstructor
  * @param  boolean $callOriginalClone
  * @param  boolean $callAutoload
  * @return PHPUnit_Framework_MockObject_MockObject
  * @throws InvalidArgumentException
  * @since  Method available since Release 3.0.0
  */
 public function getMock($originalClassName, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true)
 {
     $originalClassName = Enlight_Class::getClassName($originalClassName);
     return parent::getMock($originalClassName, $methods, $arguments, $mockClassName, $callOriginalConstructor, $callOriginalClone, $callAutoload);
 }
Example #3
0
 /**
  * Returns the class name of the given table
  *
  * @param string $tableName
  * @return Zend_Db_Table_Abstract
  */
 protected function _getTableFromString($tableName)
 {
     $tableName = Enlight_Class::getClassName($tableName);
     return parent::_getTableFromString($tableName);
 }