public function processTwilio() { $responder = $this->getResponder(); $response = $responder->getTwilioResponse(); $viewModel = new TwilioModel(); $viewModel->setResponse($response); return $viewModel; }
public function testTextContentTypeIsCalculatedForStringResponse() { $this->model->setResponse('String Response'); $this->assertEquals('text/plain', $this->model->getContentType()); }