Source of file Adapter.php
Size: 0,823 Bytes - Last Modified: 2021-12-23T10:29:02+00:00
/var/www/docs.ssmods.com/process/src/code/thirdparty/postmark/Tests/Adapter.php
123456789101112131415161718192021222324252627282930313233343536 | <?php require_once(dirname(__FILE__) . '/../Adapter_Interface.php'); class Mail_Postmark_Adapter implements Mail_Postmark_Adapter_Interface { public static $latestLogEntry; public static function getApiKey() { return Mail_Postmark::TESTING_API_KEY; } public static function setupDefaults(Mail_Postmark &$mail) { $mail->from('foo@bar.com', 'Foo Bar'); } public static function log($logData) { self::$latestLogEntry = $logData; } } require_once('simpletest/autorun.php'); class AdapterTests extends TestSuite { public function AdapterTests() { $this->TestSuite('Adapter tests'); $this->addFile(dirname(__FILE__) . '/Tests_Base.php'); $this->addFile(dirname(__FILE__) . '/Tests_Log.php'); $this->addFile(dirname(__FILE__) . '/Tests_Attachment.php'); } } |