public function wrapped_with_options() { $this->assertEquals('"http:\\/\\/example.com\\/"', Format::wrapped(' ', Format::ESCAPE_SLASHES)->representationOf('http://example.com/')); }
/** * Constructor. * * @param text.json.Format $format Optional wire format, defaults to *dense* format */ public function __construct(WireFormat $format = null) { $this->format = $format ?: WireFormat::dense(); }