Exemple #1
0
 /**
  * @see URI http://www.sno.phy.queensu.ca/~phil/exiftool/faq.html#Q10
  * @group exiftool
  * @covers \PHPExif\Adapter\Exiftool::setEncoding
  */
 public function testSetEncodingInProperty()
 {
     $reflProperty = new \ReflectionProperty('\\PHPExif\\Adapter\\Exiftool', 'encoding');
     $reflProperty->setAccessible(true);
     $expected = array('iptc' => 'cp1250');
     $input = array('iptc' => 'cp1250', 'exif' => 'utf8', 'foo' => 'bar');
     $this->adapter->setEncoding($input);
     $this->assertEquals($expected, $reflProperty->getValue($this->adapter));
 }