Files
piratepoet/tests/integration/Cron/Workers/BounceTestMockAPI.php
Jan Jakeš 01a0fe96c4 Remove no longer necessary checks
[MAILPOET-1948]
2019-09-12 13:59:32 +02:00

17 lines
335 B
PHP

<?php
namespace MailPoet\Cron\Workers\Bounce;
class BounceTestMockAPI {
function checkBounces(array $emails) {
return array_map(
function ($email) {
return [
'address' => $email,
'bounce' => preg_match('/(hard|soft)/', $email, $m) ? $m[1] : null,
];
},
$emails
);
}
}