lithium\test\Mocker::$_mockFunctionIngredients

protected static property

List of code to be generated for overwriting php functions.

Source

	protected static $_mockFunctionIngredients = [
		'function' => [
			'namespace {:namespace};',
			'use lithium\test\Mocker;',
			'function {:function}({:args}) {',
			'    $params = [];',
			'    foreach ([{:stringArgs}] as $value) {',
			'        if (!empty($value)) {',
			'            $params[] =& ${$value};',
			'        }',
			'    }',
			'    return Mocker::callFunction(__FUNCTION__, $params);',
			'}',
		],
	];