File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,32 @@ public function testSetRawData()
4141 $ this ->assertEquals ($ this ->exif , $ result );
4242 }
4343
44+ /**
45+ * @group exif
46+ */
47+ public function testGetData ()
48+ {
49+ $ reflProperty = new \ReflectionProperty ('\PHPExif\Exif ' , 'data ' );
50+ $ reflProperty ->setAccessible (true );
51+
52+ $ this ->assertEquals ($ reflProperty ->getValue ($ this ->exif ), $ this ->exif ->getData ());
53+ }
54+
55+ /**
56+ * @group exif
57+ */
58+ public function testSetData ()
59+ {
60+ $ testData = array ('foo ' , 'bar ' , 'baz ' );
61+ $ reflProperty = new \ReflectionProperty ('\PHPExif\Exif ' , 'data ' );
62+ $ reflProperty ->setAccessible (true );
63+
64+ $ result = $ this ->exif ->setData ($ testData );
65+
66+ $ this ->assertEquals ($ testData , $ reflProperty ->getValue ($ this ->exif ));
67+ $ this ->assertEquals ($ this ->exif , $ result );
68+ }
69+
4470 /**
4571 *
4672 * @dataProvider providerUndefinedPropertiesReturnFalse
You can’t perform that action at this time.
0 commit comments