[geos-commits] r4011 - trunk/php/test

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Sep 17 09:14:40 PDT 2014


Author: strk
Date: 2014-09-17 09:14:40 -0700 (Wed, 17 Sep 2014)
New Revision: 4011

Modified:
   trunk/php/test/test.php
Log:
Accept differently-structured but point-set equivalent intersection result

Modified: trunk/php/test/test.php
===================================================================
--- trunk/php/test/test.php	2014-09-17 07:36:19 UTC (rev 4010)
+++ trunk/php/test/test.php	2014-09-17 16:14:40 UTC (rev 4011)
@@ -689,9 +689,9 @@
         $g = $reader->read('POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))');
         $g2 = $reader->read('POLYGON((5 -5, 5 5, 15 5, 15 -5, 5 -5))');
         $gi = $g->intersection($g2);
-        $this->assertEquals(
+        $this->assertTrue($gi->equals($reader->read(
 'POLYGON ((10 5, 10 0, 5 0, 5 5, 10 5))'
-            , $writer->write($gi));
+            )));
         $g2 = $reader->read('POLYGON((10 0, 20 0, 20 -5, 10 -5, 10 0))');
         $gi = $g->intersection($g2);
         $this->assertEquals( 'POINT (10 0)'



More information about the geos-commits mailing list