lithium\test\Mocker::$_mockFunctionIngredients
List of code to be generated for overwriting php functions.
Source
protected static $_mockFunctionIngredients = array(
'function' => array(
'namespace {:namespace};',
'use lithium\test\Mocker;',
'function {:function}({:args}) {',
' $params = array();',
' foreach (array({:stringArgs}) as $value) {',
' if (!empty($value)) {',
' $params[] =& ${$value};',
' }',
' }',
' return Mocker::callFunction(__FUNCTION__, $params);',
'}',
),
);