public function testHeaders() { $response = new Response(null, null, ['Content-Type: text/html']); $this->assertEquals(['Content-Type: text/html'], $response->headers()); }
/** * {@inheritDoc} */ public function createMailerResponse(SendGridResponse $sendGridResponse) { $mailerResponse = new MailerResponse($sendGridResponse->getCode(), $sendGridResponse->getHeaders()->toArray(), $sendGridResponse->getBody()); return $mailerResponse; }