Merge pull request #13988 from seamuslee001/coder_upgrade_dao_files
[civicrm-core.git] / tests / phpunit / CRM / Utils / MailTest.php
index c4d97a443000edc924ab7f475f58ec9afa1dac1e..e9f77b6c538af8abce2c8ac0c5c212e49e3ea7ff 100644 (file)
@@ -1,22 +1,12 @@
 <?php
-require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
  * Class CRM_Utils_MailTest
+ * @group headless
  */
 class CRM_Utils_MailTest extends CiviUnitTestCase {
-  /**
-   * @return array
-   */
-  function get_info() {
-    return array(
-      'name' => 'Mail Test',
-      'description' => 'Test RFC822 formatting',
-      'group' => 'CiviCRM BAO Tests',
-    );
-  }
 
-  function setUp() {
+  public function setUp() {
     parent::setUp();
   }
 
@@ -24,10 +14,11 @@ class CRM_Utils_MailTest extends CiviUnitTestCase {
    * Test case for add( )
    * test with empty params.
    */
-  function testFormatRFC822() {
+  public function testFormatRFC822() {
 
     $values = array(
-      array('name' => "Test User",
+      array(
+        'name' => "Test User",
         'email' => "foo@bar.com",
         'result' => "Test User <foo@bar.com>",
       ),
@@ -67,5 +58,5 @@ class CRM_Utils_MailTest extends CiviUnitTestCase {
       $this->assertEquals($result, $value['result'], 'Expected encoding does not match');
     }
   }
-}
 
+}