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