From 947a37b4142851239b400159e403b916dc05860d Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 28 Jul 2013 10:31:57 +1200 Subject: [PATCH] CRM-13072 update example template --- tests/phpunit/api/v3/UFJoinTest.php | 1 - tests/templates/documentFunction.tpl | 26 ++++++++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/tests/phpunit/api/v3/UFJoinTest.php b/tests/phpunit/api/v3/UFJoinTest.php index 45b4d6e888..6523e029ba 100644 --- a/tests/phpunit/api/v3/UFJoinTest.php +++ b/tests/phpunit/api/v3/UFJoinTest.php @@ -1,5 +1,4 @@ getMessage(); + $errorCode = $e->getErrorCode(); + $errorData = $e->getExtraParams(); + return array('error' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData); +}{/literal} + +return $result; {literal}}{/literal} -/* +/** * Function returns array of result expected from previous function */ function {$function}_expectedresult(){literal}{{/literal} $expectedResult = {$result|@print_array}; - return $expectedResult ; + return $expectedResult; {literal}}{/literal} -- 2.25.1