CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Email / Replace.php
index d031d33d7a868c24c0bd8c272cdd6b2ecfa5b28d..74654ade260be09a9bf7d2e3122adc150b262985 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using email replace API.
+ * Test Generated example demonstrating the Email.replace API.
  *
  * @return array
  *   API result array
@@ -38,7 +38,7 @@ function email_replace_example() {
   );
 
   try{
-    $result = civicrm_api3('email', 'replace', $params);
+    $result = civicrm_api3('Email', 'replace', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -144,11 +144,10 @@ function email_replace_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testReplaceEmail
-* and can be found in
+* The test that created it is called "testReplaceEmail"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EmailTest.php
 *
 * You can see the outcome of the API tests at