/** * test case for prepareRowAsPdf() method * * @param string $spatial GIS MULTIPOLYGON object * @param string $label label for the GIS MULTIPOLYGON object * @param string $fill_color color for the GIS MULTIPOLYGON object * @param array $scale_data array containing data related to scaling * @param object $pdf TCPDF instance * * @return void * @dataProvider providerForPrepareRowAsPdf */ public function testPrepareRowAsPdf($spatial, $label, $fill_color, $scale_data, $pdf) { $return = $this->object->prepareRowAsPdf($spatial, $label, $fill_color, $scale_data, $pdf); $this->assertInstanceOf('TCPDF', $return); }
/** * * @param type $spatial * @param type $label * @param type $line_color * @param type $scale_data * @param type $pdf * *@dataProvider providerForPrepareRowAsPdf */ public function testPrepareRowAsPdf($spatial, $label, $line_color, $scale_data, $pdf) { $return = $this->object->prepareRowAsPdf($spatial, $label, $line_color, $scale_data, $pdf); $this->assertTrue($return instanceof TCPDF); }