X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCRM%2FUtils%2FMailTest.php;h=f87b9f8392b0998f895316b36ab94989a3f62e50;hb=d23a840949552b4781dde118914209bbb504a553;hp=4eda414c2e64a7dff1c8a453b5e39af67e99e126;hpb=776ff7a00ca98cd3f668e43e4419c62791b1110f;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Utils/MailTest.php b/tests/phpunit/CRM/Utils/MailTest.php index 4eda414c2e..f87b9f8392 100644 --- a/tests/phpunit/CRM/Utils/MailTest.php +++ b/tests/phpunit/CRM/Utils/MailTest.php @@ -1,8 +1,8 @@ "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'],