/** * @dataProvider providerPrettyPrint * * @param boolean $prettyPrint Whether to set the prettyPrint parameter. * @param string $ewkt The expected result EWKT. */ public function testPrettyPrint($prettyPrint, $ewkt) { $writer = new EWKTWriter(); $writer->setPrettyPrint($prettyPrint); $lineString = $this->createLineString([[1, 2, 3, 4], [5, 6, 7, 8]], CoordinateSystem::xyzm(4326)); $this->assertSame($ewkt, $writer->write($lineString)); }