We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 609f8c8 commit 0ce7a9fCopy full SHA for 0ce7a9f
tests/PHPExif/Mapper/NativeMapperTest.php
@@ -138,6 +138,21 @@ public function testMapRawDataCorrectlyFormatsFocalLength()
138
$this->assertEquals(6, reset($mapped));
139
}
140
141
+ /**
142
+ * @group mapper
143
+ * @covers \PHPExif\Mapper\Native::mapRawData
144
+ */
145
+ public function testMapRawDataCorrectlyFormatsFocalLengthDivisionByZero()
146
+ {
147
+ $rawData = array(
148
+ \PHPExif\Mapper\Native::FOCALLENGTH => '1/0',
149
+ );
150
+
151
+ $mapped = $this->mapper->mapRawData($rawData);
152
153
+ $this->assertEquals(0, reset($mapped));
154
+ }
155
156
/**
157
* @group mapper
158
* @covers \PHPExif\Mapper\Native::mapRawData
0 commit comments