Skip to content

Commit 5f09f01

Browse files
committed
Fix the loadFromFile test for dbase enabled tests
Signed-off-by: William Desportes <[email protected]>
1 parent 0429678 commit 5f09f01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/ShapeFileTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ public function testLoadEmptyFilename(): void
116116
{
117117
$shp = new ShapeFile(1);
118118
$shp->loadFromFile('');
119+
if (ShapeFile::supportsDbase()) {
120+
$this->assertEquals('It wasn\'t possible to find the DBase file ""', $shp->lastError);
121+
122+
return;
123+
}
119124
$this->assertEquals('Not a SHP file (file code mismatch)', $shp->lastError);
120125
}
121126

0 commit comments

Comments
 (0)