src/ShortifyPunit.php
protected static function _setWhenMockResponse(
        $className,
        $instanceId,
        $methodName,
        $args,
        $action,
        $returns
    ) {
        $args = serialize($args);

        $returnValues = array();
        $returnValues[$className][$instanceId][$methodName][$args]['response'] = ['action' => $action, 'value' => $returns];

        self::_addChainedResponse($returnValues);
    }
protected static function _setWhenMockResponse(
        $className,
        $instanceId,
        $methodName,
        $args,
        $action,
        $returns
    ) {
        $args = serialize($args);

        $returnValues = array();
        $returnValues[$className][$instanceId][$methodName][$args]['response'] = ['action' => $action, 'value' => $returns];

        self::_addChainedResponse($returnValues);
    }
protected static function _setWhenMockResponse ( $ className , $ instanceId , $ methodName , $ args , $ action , $ returns ) { $ args = serialize ( $ args ) ; $ returnValues = array ( ) ; $ returnValues [ $ className ] [ $ instanceId ] [ $ methodName ] [ $ args ] [ 'response' ] = [ 'action' => $ action , 'value' => $ returns ] ; self :: _addChainedResponse ( $ returnValues ) ; }
Setting up a mock response, function is called from mocked classes

@param $className
@param $instanceId
@param $methodName
@param $args
@param $action
@param $returns
Setting up a mock response function is called from mocked classes