Skip to content

Commit 75cab87

Browse files
committed
Test saving without DBF data
Signed-off-by: Michal Čihař <[email protected]>
1 parent 88edee5 commit 75cab87

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/ShapeFileTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,18 @@ public function testAdd()
223223
$this->assertEquals(5, count($shp->records));
224224
}
225225

226+
/**
227+
* Tests saving without DBF
228+
*
229+
* @return void
230+
*/
231+
public function testSaveNoDBF()
232+
{
233+
$shp = new ShapeFile(1);
234+
$shp->saveToFile('./data/test_shape.*');
235+
$this->assertFileNotExists('./data/test_shape.dbf');
236+
}
237+
226238
/**
227239
* Test shape naming.
228240
*

0 commit comments

Comments
 (0)