ShortifyPunit\ShortifyPunit::_addChainedResponse PHP Méthode

_addChainedResponse() protected static méthode

Adding chained response to ReturnValues array
protected static _addChainedResponse ( $response )
$response
    protected static function _addChainedResponse($response)
    {
        $firstChainedMethodName = key($response);
        if (isset(self::$returnValues[$firstChainedMethodName])) {
            self::$returnValues[$firstChainedMethodName] = array_replace_recursive(self::$returnValues[$firstChainedMethodName], $response[$firstChainedMethodName]);
        } else {
            self::$returnValues[$firstChainedMethodName] = $response[$firstChainedMethodName];
        }
    }