/** * @group exif * @covers \PHPExif\Exif::getRawData */ public function testGetRawData() { $reflProperty = new \ReflectionProperty('\\PHPExif\\Exif', 'rawData'); $reflProperty->setAccessible(true); $this->assertEquals($reflProperty->getValue($this->exif), $this->exif->getRawData()); }
/** * 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; }