/** * @group exif * @covers \PHPExif\Exif::getData */ public function testGetData() { $reflProperty = new \ReflectionProperty('\\PHPExif\\Exif', 'data'); $reflProperty->setAccessible(true); $this->assertEquals($reflProperty->getValue($this->exif), $this->exif->getData()); }
/** * Casts Exif to this sub-class. * * @param PHPExif\Exif $exif * * @return Exif */ public static function cast(PHPExif\Exif $exif) { $new = new static($exif->getData()); $new->setRawData($exif->getRawData()); return $new; }