fromString() public static method

Deserialize a response string to a response instance.
public static fromString ( string $message ) : Response
$message string
return Phly\Http\Response
Beispiel #1
0
 /**
  * @dataProvider messagesWithInvalidHeaders
  */
 public function testDeserializationRaisesExceptionForMalformedHeaders($message, $exceptionMessage)
 {
     $this->setExpectedException('UnexpectedValueException', $exceptionMessage);
     $response = Serializer::fromString($message);
 }