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