저자: Romain Neutron - imprec@gmail.com
상속: implements IteratorAggregate
예제 #1
0
 /**
  * @covers PHPExiftool\FileEntity::executeQuery
  */
 public function testExecuteQuery()
 {
     $this->assertInstanceOf('\\PHPExiftool\\Driver\\Value\\Mono', $this->object->executeQuery('IFD0:Copyright'));
     $this->assertEquals('Copyright 2004 Phil Harvey', $this->object->executeQuery('IFD0:Copyright')->asString());
     $this->assertInstanceOf('\\PHPExiftool\\Driver\\Value\\Binary', $this->object->executeQuery('CIFF:FreeBytes'));
     $this->assertInstanceOf('\\PHPExiftool\\Driver\\Value\\Multi', $this->object->executeQuery('XMP-dc:Subject'));
     $this->assertEquals(array('ExifTool', 'Test', 'XMP'), $this->object->executeQuery('XMP-dc:Subject')->asArray());
 }
예제 #2
0
 /**
  *
  * @return MetadataBag
  */
 public function getMetadatas()
 {
     return $this->entity->getMetadatas();
 }