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