@@ -44,7 +44,7 @@ public static function providerForTestGetExtent(): array
4444 #[DataProvider('providerForTestGetExtent ' )]
4545 public function testGetExtent (string $ spatial , Extent $ extent ): void
4646 {
47- $ object = GisGeometryCollection:: singleton ();
47+ $ object = new GisGeometryCollection ();
4848 self ::assertEquals ($ extent , $ object ->getExtent ($ spatial ));
4949 }
5050
@@ -59,7 +59,7 @@ public function testGetExtent(string $spatial, Extent $extent): void
5959 #[DataProvider('providerForTestGenerateWkt ' )]
6060 public function testGenerateWkt (array $ gisData , int $ index , string $ empty , string $ output ): void
6161 {
62- $ object = GisGeometryCollection:: singleton ();
62+ $ object = new GisGeometryCollection ();
6363 self ::assertSame ($ output , $ object ->generateWkt ($ gisData , $ index , $ empty ));
6464 }
6565
@@ -157,7 +157,7 @@ public static function providerForTestGenerateWkt(): array
157157 #[DataProvider('providerForTestGenerateParams ' )]
158158 public function testGenerateParams (string $ wkt , array $ params ): void
159159 {
160- $ object = GisGeometryCollection:: singleton ();
160+ $ object = new GisGeometryCollection ();
161161 self ::assertSame ($ params , $ object ->generateParams ($ wkt ));
162162 }
163163
@@ -280,7 +280,7 @@ public static function providerForTestGenerateParams(): array
280280 #[RequiresPhpExtension('gd ' )]
281281 public function testPrepareRowAsPng (): void
282282 {
283- $ object = GisGeometryCollection:: singleton ();
283+ $ object = new GisGeometryCollection ();
284284 $ image = ImageWrapper::create (200 , 124 , ['red ' => 229 , 'green ' => 229 , 'blue ' => 229 ]);
285285 self ::assertNotNull ($ image );
286286 $ object ->prepareRowAsPng (
@@ -317,7 +317,7 @@ public function testPrepareRowAsPdf(
317317 ScaleData $ scaleData ,
318318 TCPDF $ pdf ,
319319 ): void {
320- $ object = GisGeometryCollection:: singleton ();
320+ $ object = new GisGeometryCollection ();
321321 $ object ->prepareRowAsPdf ($ spatial , $ label , $ color , $ scaleData , $ pdf );
322322
323323 $ fileExpected = $ this ->testDir . '/geometrycollection-expected.pdf ' ;
@@ -361,7 +361,7 @@ public function testPrepareRowAsSvg(
361361 ScaleData $ scaleData ,
362362 string $ output ,
363363 ): void {
364- $ object = GisGeometryCollection:: singleton ();
364+ $ object = new GisGeometryCollection ();
365365 $ svg = $ object ->prepareRowAsSvg ($ spatial , $ label , $ color , $ scaleData );
366366 self ::assertSame ($ output , $ svg );
367367 }
@@ -403,7 +403,7 @@ public function testPrepareRowAsOl(
403403 array $ color ,
404404 array $ expected ,
405405 ): void {
406- $ object = GisGeometryCollection:: singleton ();
406+ $ object = new GisGeometryCollection ();
407407 self ::assertSame ($ expected , $ object ->prepareRowAsOl ($ spatial , $ srid , $ label , $ color ));
408408 }
409409
0 commit comments