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

svn_geos at osgeo.org svn_geos at osgeo.org
Thu Jan 27 05:16:32 EST 2011


Author: strk
Date: 2011-01-27 02:16:32 -0800 (Thu, 27 Jan 2011)
New Revision: 3169

Modified:
   trunk/php/test/test.php
Log:
Don't use is_null on unexistant array elements [#393]

Modified: trunk/php/test/test.php
===================================================================
--- trunk/php/test/test.php	2011-01-25 23:20:25 UTC (rev 3168)
+++ trunk/php/test/test.php	2011-01-27 10:16:32 UTC (rev 3169)
@@ -1268,8 +1268,8 @@
         $val = $g->checkValidity();
         $this->assertType( 'array', $val );
         $this->assertTrue( $val['valid'] );
-        $this->assertNull( $val['reason'] );
-        $this->assertNull( $val['location'] );
+        $this->assertFalse( isset($val['reason']) );
+        $this->assertFalse( isset($val['location']) );
 
         $g = $reader->read('POINT(0 NaN)');
         $val = $g->checkValidity();



More information about the geos-commits mailing list