X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCRM%2FUtils%2FMailTest.php;h=f87b9f8392b0998f895316b36ab94989a3f62e50;hb=d36fcd1e418ab43bff5cc2f5b360bbc5261b9d1f;hp=6a7627685cd8755c40186a8e6af225261cef732f;hpb=67a96e875ffb9f254f32c0bdc0cfb554eb499753;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Utils/MailTest.php b/tests/phpunit/CRM/Utils/MailTest.php index 6a7627685c..f87b9f8392 100644 --- a/tests/phpunit/CRM/Utils/MailTest.php +++ b/tests/phpunit/CRM/Utils/MailTest.php @@ -2,6 +2,7 @@ /** * Class CRM_Utils_MailTest + * @group headless */ class CRM_Utils_MailTest extends CiviUnitTestCase { @@ -15,40 +16,40 @@ class CRM_Utils_MailTest extends CiviUnitTestCase { */ public function testFormatRFC822() { - $values = array( - array( + $values = [ + [ 'name' => "Test User", 'email' => "foo@bar.com", 'result' => "Test User ", - ), - array( + ], + [ 'name' => '"Test User"', 'email' => "foo@bar.com", 'result' => "Test User ", - ), - array( + ], + [ 'name' => "User, Test", 'email' => "foo@bar.com", 'result' => '"User, Test" ', - ), - array( + ], + [ 'name' => '"User, Test"', 'email' => "foo@bar.com", 'result' => '"User, Test" ', - ), - array( + ], + [ 'name' => '"Test User"', 'email' => "foo@bar.com", 'result' => '"Test User" ', 'useQuote' => TRUE, - ), - array( + ], + [ 'name' => "User, Test", 'email' => "foo@bar.com", 'result' => '"User, Test" ', 'useQuote' => TRUE, - ), - ); + ], + ]; foreach ($values as $value) { $result = CRM_Utils_Mail::formatRFC822Email($value['name'], $value['email'],