Skip to content

Commit c5b63c1

Browse files
author
Tom Van Herreweghe
committed
Update unit tests for getExifFromFile() to check if getRawData() has data
Signed-off-by: Tom Van Herreweghe <tom@king-foo.be>
1 parent ff6485c commit c5b63c1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/PHPExif/Adapter/ExiftoolTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public function testGetExifFromFile()
6969
$file = PHPEXIF_TEST_ROOT . '/files/morning_glory_pool_500.jpg';
7070
$result = $this->adapter->getExifFromFile($file);
7171
$this->assertInstanceOf('\PHPExif\Exif', $result);
72+
$this->assertInternalType('array', $result->getRawData());
73+
$this->assertNotEmpty($result->getRawData());
7274
}
7375

7476
/**

tests/PHPExif/Adapter/NativeTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ public function testGetExifFromFileHasData()
117117
$file = PHPEXIF_TEST_ROOT . '/files/morning_glory_pool_500.jpg';
118118
$result = $this->adapter->getExifFromFile($file);
119119
$this->assertInstanceOf('\PHPExif\Exif', $result);
120+
$this->assertInternalType('array', $result->getRawData());
121+
$this->assertNotEmpty($result->getRawData());
120122
}
121123

122124
/**

0 commit comments

Comments
 (0)