예제 #1
0
 /**
  * @group native
  * @covers \PHPExif\Adapter\Native::getSectionsAsArrays
  */
 public function testGetSectionsAsArrayFromProperty()
 {
     $reflProperty = new \ReflectionProperty('\\PHPExif\\Adapter\\Native', 'sectionsAsArrays');
     $reflProperty->setAccessible(true);
     $reflProperty->setValue($this->adapter, \PHPExif\Adapter\Native::SECTIONS_AS_ARRAYS);
     $this->assertEquals(\PHPExif\Adapter\Native::SECTIONS_AS_ARRAYS, $this->adapter->getSectionsAsArrays());
 }
예제 #2
0
 /**
  * @group adapter
  * @covers \PHPExif\Adapter\AdapterAbstract::getHydrator
  */
 public function testGetHydratorLazyLoadingSetsInProperty()
 {
     $hydratorClass = '\\PHPExif\\Hydrator\\Mutator';
     $reflProp = new \ReflectionProperty(get_class($this->adapter), 'hydrator');
     $reflProp->setAccessible(true);
     $this->adapter->getHydrator();
     $this->assertInstanceOf($hydratorClass, $reflProp->getValue($this->adapter));
 }