fromString() public static method

Internally, casts the message to a stream and invokes fromStream().
public static fromString ( string $message ) : Request
$message string
return Phly\Http\Request
Beispiel #1
0
 /**
  * @dataProvider messagesWithInvalidHeaders
  */
 public function testDeserializationRaisesExceptionForMalformedHeaders($message, $exceptionMessage)
 {
     $this->setExpectedException('UnexpectedValueException', $exceptionMessage);
     $request = Serializer::fromString($message);
 }