public function dense_with_options() { $this->assertEquals('"http:\\/\\/example.com\\/"', Format::dense(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(); }