Coding standards cleanup sprint.
[civicrm-core.git] / tests / phpunit / api / v3 / MailingContactTest.php
index b1863f860100c4223c7996b289e3fc5aeb7d02b5..1d0e07cd7799141aca6971d144a2a856b52a12af 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -44,7 +44,7 @@ class api_v3_MailingContactTest extends CiviUnitTestCase {
   protected $_apiversion = 3;
   protected $_entity = 'mailing';
 
-  function setUp() {
+  public function setUp() {
     parent::setUp();
     $params = array(
       'first_name' => 'abc1',
@@ -54,7 +54,7 @@ class api_v3_MailingContactTest extends CiviUnitTestCase {
     $this->_contact = $this->callAPISuccess("contact", "create", $params);
   }
 
-  function tearDown() {
+  public function tearDown() {
     $this->callAPISuccess("contact", "delete", array('id' => $this->_contact['id']));
     parent::tearDown();
   }
@@ -67,7 +67,7 @@ class api_v3_MailingContactTest extends CiviUnitTestCase {
    * but don't copy it only any other classes
    */
   public function testMailingNullParams() {
-    $result = $this->callAPIFailure('MailingContact', 'get', null);
+    $result = $this->callAPIFailure('MailingContact', 'get', NULL);
   }
 
   public function testMailingContactGetFields() {
@@ -97,7 +97,7 @@ class api_v3_MailingContactTest extends CiviUnitTestCase {
    * belongs in the SyntaxConformance class
    */
   public function testMailingContactInvalidContactID() {
-    $params = array('contact_id' => 'This is not a number',);
+    $params = array('contact_id' => 'This is not a number');
     $result = $this->callAPIFailure('MailingContact', 'get', $params);
   }
 
@@ -163,7 +163,7 @@ class api_v3_MailingContactTest extends CiviUnitTestCase {
   /**
    * Test that the API returns only the "Bounced" mailings when instructed to do so
    */
-  function testMailingContactBounced( ) {
+  public function testMailingContactBounced() {
     $op = new PHPUnit_Extensions_Database_Operation_Insert();
     //Create the User
     $op->execute($this->_dbconn,