/** * test case for prepareRowAsSvg() method * * @param string $spatial GIS LINESTRING object * @param string $label label for the GIS LINESTRING object * @param string $line_color color for the GIS LINESTRING object * @param array $scale_data array containing data related to scaling * @param string $output expected output * * @dataProvider providerForPrepareRowAsSvg * @return void */ public function testPrepareRowAsSvg($spatial, $label, $line_color, $scale_data, $output ) { $string = $this->object->prepareRowAsSvg( $spatial, $label, $line_color, $scale_data ); $this->assertEquals(1, preg_match($output, $string)); }