Esempio n. 1
0
 /**
  * @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());
 }
Esempio n. 2
0
 /**
  * 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;
 }