예제 #1
0
파일: ExifTest.php 프로젝트: Smony/njphoto
 /**
  * @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());
 }
예제 #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;
 }