CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Contact / Get.php
index f82ecbc04180c0ddd2afcf0f5643b859402bd64f..79be6cea475214bb6026c5583cfbb17e6783aabe 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /**
- * Test Generated example of using contact get API.
- *
+ * Test Generated example demonstrating the Contact.get API.
  *
  * @return array
  *   API result array
@@ -12,7 +11,7 @@ function contact_get_example() {
   );
 
   try{
-    $result = civicrm_api3('contact', 'get', $params);
+    $result = civicrm_api3('Contact', 'get', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -117,11 +116,10 @@ function contact_get_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testContactGetEmail
-* and can be found in
+* The test that created it is called "testContactGetEmail"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php
 *
 * You can see the outcome of the API tests at