src/ShortifyPunit.php
private static function &getMockHierarchyResponse(
        $chainedMethodsBefore,
        $mockClassType,
        $mockClassInstanceId
    ) {
        $rReturnValues = &self::$returnValues[$mockClassType][$mockClassInstanceId];
        // Check return values chain
        foreach ($chainedMethodsBefore as $chainedMethod) {
            $chainedMethodName = key($chainedMethod);
            $chainedMethodArgs = $chainedMethod[$chainedMethodName];

            $serializedChainMethodArgs = serialize($chainedMethodArgs);

            $rReturnValues = & $rReturnValues[$chainedMethodName][$serializedChainMethodArgs];
        }
        return $rReturnValues;
    }
private static function &getMockHierarchyResponse(
        $chainedMethodsBefore,
        $mockClassType,
        $mockClassInstanceId
    ) {
        $rReturnValues = &self::$returnValues[$mockClassType][$mockClassInstanceId];
        // Check return values chain
        foreach ($chainedMethodsBefore as $chainedMethod) {
            $chainedMethodName = key($chainedMethod);
            $chainedMethodArgs = $chainedMethod[$chainedMethodName];

            $serializedChainMethodArgs = serialize($chainedMethodArgs);

            $rReturnValues = & $rReturnValues[$chainedMethodName][$serializedChainMethodArgs];
        }
        return $rReturnValues;
    }
private static function & getMockHierarchyResponse ( $ chainedMethodsBefore , $ mockClassType , $ mockClassInstanceId ) { $ rReturnValues = & self :: $ returnValues [ $ mockClassType ] [ $ mockClassInstanceId ] ; // Check return values chain foreach ( $ chainedMethodsBefore as $ chainedMethod ) { $ chainedMethodName = key ( $ chainedMethod ) ; $ chainedMethodArgs = $ chainedMethod [ $ chainedMethodName ] ; $ serializedChainMethodArgs = serialize ( $ chainedMethodArgs ) ; $ rReturnValues = & $ rReturnValues [ $ chainedMethodName ] [ $ serializedChainMethodArgs ] ; } return $ rReturnValues ; }
Returns the mock hierarchy response values

@param $chainedMethodsBefore
@param $mockClassType
@param $mockClassInstanceId
@return mixed
Returns the mock hierarchy response values